My first one is abit of an interesting one, i have a Parent Window and a Child Window... When a user tries to resize a child window, it decides to center itself in the middle of the container gadget, See for yourself:
Code: Select all
OpenWindow(0, 5, 5, 800, 600, "test", #PB_Window_ScreenCentered | #PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget | #PB_Window_TitleBar )
CreateGadgetList(WindowID(0))
ContainerGadget(0, 10, 10, 780, 580, #PB_Container_Single) : CloseGadgetList()
OpenWindow(1,0,0,500,500,"Test2",#PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget | #PB_Window_TitleBar)
SetParent_(WindowID(1),GadgetID(0))
Repeat
Event = WindowEvent()
Delay(16)
Until Event = #PB_Event_CloseWindow
_______
Last question;
Is there a simple way to get the position of the last item created in a Tree Gadget?
Thanks for reading.