Page 4 of 4
Posted: Wed Jun 06, 2007 11:12 am
by ts-soft
Test this:
Code: Select all
Procedure OB_AddGadgetItem3 (*gadget.PB_Gadget, Position, Texte.s, bla.l, blub.l)
;code here
EndProcedure
Procedure OB_AddGadgetItem2 (*gadget.PB_Gadget, Position, Texte.s, dummy.l = -1)
ProcedureReturn OB_AddGadgetItem3 (*gadget.PB_Gadget, Position, Texte.s, dummy, -1)
EndProcedure
Posted: Wed Jun 06, 2007 11:36 am
by Progi1984
No result !
I send you my code by PM !
Posted: Wed Jun 06, 2007 11:57 am
by ts-soft
Progi1984 wrote:No result !
I send you my code by PM !
You don't use the pbosl lib, you use the source!
Sorry, i have in the moment no time to check this
greetings
thomas
Posted: Wed Jun 06, 2007 7:11 pm
by Progi1984
ts-soft wrote:Test this:
Code: Select all
Procedure OB_AddGadgetItem3 (*gadget.PB_Gadget, Position, Texte.s, bla.l, blub.l)
;code here
EndProcedure
Procedure OB_AddGadgetItem2 (*gadget.PB_Gadget, Position, Texte.s, dummy.l = -1)
ProcedureReturn OB_AddGadgetItem3 (*gadget.PB_Gadget, Position, Texte.s, dummy, -1)
EndProcedure
Small question : where can i have some better information about each field of structure PB_GadgetVT ? Because i search in the lib sdk and i find no true informations !
Posted: Wed Jun 06, 2007 7:19 pm
by ts-soft
I have only the information from the examples in the pb sdk
Posted: Wed Jun 06, 2007 7:37 pm
by freak
The default values passed to the function are 0, not -1 if the parameter is not used.
You should only implement one of the two functions (depending on your need for the flags parameter)
The AddGadgetItem3 will be called if present and else the AddGadgetItem2, no matter
wich parameters the coder actually used.
Posted: Thu Jun 07, 2007 7:48 am
by Progi1984
Thank you very much freak and ts-soft ! These informations are very useful !!!!
Posted: Tue Jul 24, 2007 10:57 pm
by byo
Amazing work, ts-soft.
Do you think you can provide an example that would show how to create an ImageButton but like Delphi's one (with a caption under/over/beside the image) ?
I have a great interest in this component and I love your examples.

Posted: Tue Jul 24, 2007 11:09 pm
by ts-soft
@byo
You should use the PBOSL lib, is more up to date
In the PBOSL examples is a menubutton example, i think this is that what
you like.
Posted: Wed Jul 25, 2007 4:42 am
by byo
Thanks for the amazing PBOSL (to its authors too).
I can't seem to find any examples on the website or the zip file like the one you mentioned. Is there somewhere else I should look at?

Posted: Wed Jul 25, 2007 4:52 am
by ts-soft
Load the PBOSL_Examples.zip
"PBOSL_EXAMPLES\PBOSL4\EXAMPLES\PBOSL_CreateGadget\MenuButton\"
here is the one that i mentioned
greetings
Thomas