ScrollPanelClient and GadgetGroup

BlitzMax Forums/MaxGUI Module/ScrollPanelClient and GadgetGroup

dan_upright(Posted 2014) [#1]
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



dan_upright(Posted 2014) [#2]
After some faffing around, I've determined that the value returned is the proxy gadget for the ScrollPanel's ScrollPanelClient. I have no idea how that's happening or if it's useful at all, so I'm still unsure if this is intended behaviour or a bug.