UseGadgetList() return current gadgetlist owner

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

UseGadgetList() return current gadgetlist owner

Post by eddy »

Code: Select all

CurrentOwnerID = UseGadgetList()
without parameter, this command could return :
- zero
- currentOwnerID

I need this feature for my toolbar lib:

Code: Select all

hPrevGadgetList=UseGadgetList()

UseGadgetList(hToolbar)

StringGadget(...)

if hPrevGadgetList
   UseGadgetList(hPrevGadgetList)
endif