If I create a ScrollPanel and add children to it's ScrollPanelClient, what gadget do I get back from using GadgetGroup on those children? It's not the ScrollPanel itself or the ScrollPanelClient and it isn't the child gadget itself, which was my next guess - is this a bug or am I missing something?
This code shows what I'm on about, it prints 4 different addresses:
SuperStrict
Import maxgui.drivers
Import maxgui.proxygadgets
Local window:TGadget, toolScroll:TScrollPanel, toolPanel:TGadget, textBox:TGadget
window = CreateWindow("test", 0, 0, 400, 200, Null, WINDOW_DEFAULT | WINDOW_CENTER)
toolScroll = CreateScrollPanel(0, 0, ClientWidth(window), ClientHeight(window), window)
Print(toolScroll.ToString())
toolPanel = ScrollPanelClient(toolScroll)
Print(toolPanel.ToString())
textBox = CreateTextField(16, 8, 120, 20, toolPanel)
Print(textBox.ToString())
Print(GadgetGroup(textBox).ToString())
End
|