PureBasic SetParent_(...) equivalent for Gadgets

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

PureBasic SetParent_(...) equivalent for Gadgets

Post by fsw »

Would be nice if there would be a SetParent equivalent for Gadgets.

SetParent is a WindowsOS API command to set/change a parent on the fly without destroying the Gadget.

PureBasic uses GadgetLists to keep track of certain things, so using SetParent on a Gadget would result in unforseen behaviour.

Maybe something like:
MoveToGadgetList(#Gadget, WindowID(#Window))

If a special Gadget like Container is moved all children should move too.

Sorry if there is already such a PureBasic command (but didn't see one).


Thanks for listening.

BTW: Would be very nice to see this in V4 final.