SetGadgetGroup
BlitzMax Forums/MaxGUI Module/SetGadgetGroup
| ||
Not sure if this is 100% safe or not, but it seems to work:Function SetGadgetGroup(gadget:TGadget,group:TGadget) gadget.parent.kids.remove(gadget) gadget.parent=group gadget.parent.kids.addlast(gadget) SetParent(QueryGadget(gadget,QUERY_HWND),QueryGadget(group,QUERY_HWND_CLIENT)) SetGadgetShape(group,GadgetX(group),GadgetY(group),GadgetWidth(group),GadgetHeight(group)) EndFunction |
| ||
very nice! I think I may use this myself |
| ||
I get an error: Identifier "SetParent" not found trying to test it on a Linux install... |
| ||
I forgot you need this too: Extern "win32" Function SetParent(a:int,b:int) EndExtern Windows only. |
| ||
aah ok :( I only run Linux, so I guess this will be of no real use to me |
| ||
This will certainly be useful. Thanks. |