Posted: Sun Sep 15, 2002 12:04 pm
Restored from previous forum. Originally posted by Berikco.

Its just, my old GFA Basic used another way for handling events.
It looks like this. (sub is just 'procedure')
So in a bigger app, with hundreds of messages to handel, you got an enormous amount of procedures.....
This is wy i start using callback, to get some overview...and explains also why i like the 'procedure folding' so much.
Regards,
Benny aka Beriko
http://www.benny.zeb.be
Thanks PB ...25 messages... do i get a Star nowOriginally posted by PB
> Just changed PB's code to use CallBack.
Thanks, Benny. I've reposted your changes to my original tip in the
"Tips 'N' Tricks" section, along with a credit to you.
PB - Registered PureBasic Coder
Its just, my old GFA Basic used another way for handling events.
It looks like this. (sub is just 'procedure')
Code: Select all
sub win_1_lButtonUp
; mouse pressed
End Sub
Sub button1_Click
; do the stuff..
End Sub
Sub text_Changed
; text of gadget has been edited.
End SubThis is wy i start using callback, to get some overview...and explains also why i like the 'procedure folding' so much.
Regards,
Benny aka Beriko
http://www.benny.zeb.be