Hi PureTeam and Fred!
It would be very nice to have a command that returns a Value that defines the type of the PB Gadget.
Example:
Value.l = GetGadgetType(handle)
Returns as Result
#PB_GadgetType_ComboBox
That would enable the user to do some common CallBack-Stuff for different GadgetTypes without holding these information in LinkesLists.
Just an Idea.
Cheers
Mike
[Implemented] GetGadgetType(handle)
[Implemented] GetGadgetType(handle)
Tranquil
Try this (is not the same thing... but...)
Code: Select all
Procedure.s GetGadgetType(gadget)
class$=Space(255) : GetClassName_(GadgetID(gadget),class$,255)
ProcedureReturn class$
EndProcedure
PB 6.21 beta, PureVision User