Code: Select all
SplitterGadget(#spg ,10,10,100,100,#panel_1,#panel_2 )
Code: Select all
SplitterGadget(#spg ,10,10,100,100,#panel_1,#panel_2 )
Code: Select all
If OpenWindow(0, 0, 0, 230, 180, "SplitterGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
#Button1 = 0
#Button2 = 1
#Splitter = 2
ButtonGadget(#Button1, 0, 0, 0, 0, "Button 1") ; No need to specify size or coordinates
ButtonGadget(#Button2, 0, 0, 0, 0, "Button 2") ; as they will be sized automatically
SplitterGadget(#Splitter, 5, 5, 220, 120, #Button1, #Button2, #PB_Splitter_Separator)
TextGadget(3, 10, 135, 210, 40, "Above GUI part shows two automatically resizing buttons inside the 220x120 SplitterGadget area.",#PB_Text_Center )
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
Break
Case #PB_Event_Gadget
Select EventGadget()
Case #Splitter
Debug "Splitter Position: " + GetGadgetState(#Splitter)
Debug "Button 1 Height: " + GadgetHeight(#Button1)
Debug "Button 2 Height: " + GadgetHeight(#Button2)
EndSelect
EndSelect
ForEver
EndIf
Show us the code you're trying then. All you posted is the code to create the gadget.rndrei wrote: Wed Apr 16, 2025 2:59 am Hey, I know where to read the information, but if I ask, this does not mean that I'm not trying ...
You asked: "How to find out the current position of the XY Spliter"rndrei wrote: Wed Apr 16, 2025 2:59 amHey, I know where to read the information, but if I ask, this does not mean that I'm not trying ...