Search found 34 matches

by schic
Fri Feb 06, 2015 12:20 pm
Forum: Coding Questions
Topic: How to remove item from string gadget context menu?
Replies: 6
Views: 3204

Re: How to remove item from string gadget context menu?

Thanks Netmaestro the Program my be usless but not the code

but to use it I had to set g_hHook to static otherwise mainmenus are affected

Code: Select all

Procedure WinCallback(hwnd, msg, wparam, lparam)
  Static g_hHook
...
by schic
Tue Apr 21, 2009 7:16 pm
Forum: Coding Questions
Topic: PurePDF 2.14 strange behavior with compression
Replies: 4
Views: 1186

it seems not only to be the old version I am using, but the installation wich is corrupt. Meanwhile I tried it at work with Acrobat 5.0 and everything works well.

Again, thank you for aiming me to the right direction. I would have looking to the code for an error forever, cause i never had problems ...
by schic
Sun Apr 19, 2009 7:19 pm
Forum: Coding Questions
Topic: PurePDF 2.14 strange behavior with compression
Replies: 4
Views: 1186

I used Acrobat 5.0. OK - not the newest version :oops:
With Acrobat-Reader 9 it is working well, although a
strange behavior with this pdf-files.

Thanks for the advice and your work on this great library.
by schic
Sun Apr 19, 2009 10:49 am
Forum: Coding Questions
Topic: PurePDF 2.14 strange behavior with compression
Replies: 4
Views: 1186

PurePDF 2.14 strange behavior with compression

used some code from the totorials to show the problem (PB4.30 PurePDF214):

Global title.s
Global Col.f
Global y0.f
title="20000 Leagues Under the Seas"

#ZLIB_VERSION = "1.2.3"
#ZLIB_VERNUM = $1230
XIncludeFile "Source\PurePDF_res.pb"
XIncludeFile "Source\PurePDF.pb"

Structure z_stream
*next_in ...
by schic
Mon Mar 17, 2008 11:16 pm
Forum: Announcement
Topic: Using event handlers - (EasyVENT version 3.2)
Replies: 120
Views: 72539

well I have changed it, with the help of many posts here in the forum. Thank you all.
For those who need multiselecting in trees:



XIncludeFile "E:\coding\PB\EasyVENT - v3\EasyVENT.pbi" ; by Stephen Rodriguez

#TVM_GETITEMSTATE = #TV_FIRST + 39

; TreeView with multiselect using #TVIS_MARKED = 1 ...
by schic
Mon Mar 17, 2008 7:17 pm
Forum: Announcement
Topic: Using event handlers - (EasyVENT version 3.2)
Replies: 120
Views: 72539

you are right i was a little bit too headless, mixed some PB 3.X
code with EasyVent :oops:

Excuse.

But tried to make a Tree-multiselection with EasyVent and it
already did work quite good and not to be a deathless back
number I started with EasyVent3.1 halfway...

well I suppose I have to ...
by schic
Sun Mar 16, 2008 4:02 pm
Forum: Announcement
Topic: Using event handlers - (EasyVENT version 3.2)
Replies: 120
Views: 72539

there are some bugs, at least unlogic behavior with
TreeGadgets in the newer versions of Easyvent:

- no MouseUp-event on Scrollbar, MouseDown-event does work
- no MouseUp on selecting
- no #EVENT_LEFTBUTTON sent with MouseOver

these did work as expected in early versions.

no negative Mouse ...
by schic
Thu Dec 06, 2007 8:35 pm
Forum: Coding Questions
Topic: Strings not passing across shared memory?
Replies: 5
Views: 1942

here´s some code, quickly picked together from my project.
Maybe it helps you to use FileMapping.
Start the program 2 times, select a tree node and copy
and paste as you like.



Global FilMapName.s = "MyUnique_MemName"
Global message_copy_id.l
Global MyClipboardMem.l, HandleMap.l, try2close.l ...
by schic
Sat Aug 25, 2007 11:09 am
Forum: Tricks 'n' Tips
Topic: Faster StrF()
Replies: 9
Views: 3945

thanks for sharing.
Very usefull if one has to change a large number of floats into strings.

But a wrong value is given if the float is null (-1.00)
If code is changed to:

Code: Select all

  If a <= i     And a > 0 ; !!!!!!!
    i - 1
  EndIf
it works correct.
by schic
Sat Jul 28, 2007 10:37 am
Forum: Tricks 'n' Tips
Topic: QuickSearch Algorithm (Blitzes Findstring)
Replies: 41
Views: 25888

I have collected some search algorithm over the time
and done some own on base of that.

Maybe an interesting suggestion to this topic.
Try different patterns...


Global GbTmp.l
Global tmpcount

Structure MemoryArray
Char.c[0]
EndStructure

Procedure.l Quicksearch(StartPos.l, *MainMem, MainLen.l ...
by schic
Sun May 28, 2006 3:37 pm
Forum: Announcement
Topic: Using event handlers - (obsolete version)
Replies: 129
Views: 59436

if checking GetAsyncKeyState_(#VK_LBUTTON)=32768
in Case #WM_MOUSEMOVE the whole If sender\Text$<>""
...
EndIf
can be moved from Case #WM_LBUTTONDOWN to Case #WM_MOUSEMOVE.
I am playing around with it and - well have problems with marking text in
StringGadgets (mouse-button down and moving) but ...
by schic
Sun May 28, 2006 2:42 pm
Forum: Announcement
Topic: Using event handlers - (obsolete version)
Replies: 129
Views: 59436

Hi srod

did you ever consider on binding the #OnDragItemStart event,
to the #WM_MOUSEMOVE and not to the #WM_LBUTTONDOWN
message? This seems to be the more logic way for me, cause
a drag event occurs not until the mouse is moved with left
botton pressed.

I am not very familiar to all the API ...
by schic
Sat May 27, 2006 11:40 am
Forum: Announcement
Topic: Using event handlers - (obsolete version)
Replies: 129
Views: 59436

Thank you srod for your help.
Now it does work with the ListView.
it is probably best if you do not use PB's event loop for anything other than closing the program
Yes I feared this work, but did already start to resolve the PB Event loop and
change it with EasyVENTs. Think it´s worth while.
by schic
Fri May 26, 2006 2:40 pm
Forum: Announcement
Topic: Using event handlers - (obsolete version)
Replies: 129
Views: 59436

thank you srod for sharing this great procs.
It´s perfect except two things:
One very little blemish is, the cursor getting the icon "forbidden" for
a moment, if drag-event is enabled and the mousebutton is coming up
(in TreeGadget and List-Gadgets).

I could fix this by changing EasyVENT.pbi
If ...
by schic
Thu Mar 02, 2006 7:01 pm
Forum: Tricks 'n' Tips
Topic: Boyer-Moore fast string search algorithm
Replies: 31
Views: 13338

tested search speed for a few ASM codes some time ago.
Speed depends widely from the pattern and its length.
Here are the examples to play with:
; Global tmp.s;#for debugging only
Global GbTmp.l
Global tmpcount

; Procedure.l inMemStrCS(*Source, strStr.s, StartPos)
; ; search case sensitiv ...