Page 1 of 1

[Implemented] GetGadgetType(handle)

Posted: Fri May 20, 2005 10:09 am
by Tranquil
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

Posted: Fri May 20, 2005 10:14 am
by zikitrake
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

Posted: Fri May 20, 2005 11:46 am
by Fred
It's a good idea, we will add this.