NOW! on the panelgadget, just after the first tab, if you have your mouse there then a double arrow will show, allowing you to RESIZE!
How can i get rid of that?
Thanks in advance
Code: Select all
Global Window_0
Global Panel_0
Global ListIcon_0
Global Splitter_0
Procedure Open_Window_0()
Window_0 = OpenWindow(#PB_Any, 5, 5, 382, 292, #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar , "Test")
If Window_0
If CreateGadgetList(WindowID(Window_0))
Panel_0 = PanelGadget(#PB_Any, 10, 10, 380, 240)
AddGadgetItem(Panel_0, 1, "Tab 1")
ListIcon_0 = ListViewGadget(#PB_Any, -2, 218, 380, 50)
CloseGadgetList()
Splitter_0 = SplitterGadget(#PB_Any, 0, 0, 380, 280, Panel_0, ListIcon_0,#PB_Splitter_SecondFixed)
EndIf
EndIf
EndProcedure
Open_Window_0()
;Init the splitbar position
SetGadgetState(Splitter_0,206)
For i=1 To 50
AddGadgetItem(ListIcon_0,-1,"[22:52:32] Testing "+Str(i))
Next i
Repeat
Event = WaitWindowEvent()
WindowID = EventWindow()
If event= #PB_Event_SizeWindow
ResizeGadget(splitter_0,0,0,WindowWidth(window_0),WindowHeight(window_0)-20)
EndIf
GadgetID = EventGadget()
If Event = #PB_Event_Gadget
EndIf
Until Event = #PB_Event_CloseWindow
End

Code: Select all
Global Window_0
Global Panel_0
Global ListIcon_0
Global Splitter_0
Global Frame_0
Procedure Open_Window_0()
Window_0 = OpenWindow(#PB_Any, 5, 5, 382, 292, #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar , "Test")
If Window_0
If CreateGadgetList(WindowID(Window_0))
; All this container does is hold the panel, see the #PB_Event_SizeWindow
; event below
Frame_0 = ContainerGadget(#PB_Any, 10, 10, 380, 240)
Panel_0 = PanelGadget(#PB_Any, 0, 0, 300, 200)
CloseGadgetList()
AddGadgetItem(Panel_0, 1, "Tab 1")
CloseGadgetList()
ListIcon_0 = ListViewGadget(#PB_Any, -2, 218, 380, 50)
Splitter_0 = SplitterGadget(#PB_Any, 0, 0, 380, 280, Frame_0, ListIcon_0, #PB_Splitter_SecondFixed)
EndIf
EndIf
EndProcedure
Open_Window_0()
;Init the splitbar position
SetGadgetState(Splitter_0,206)
For i=1 To 50
AddGadgetItem(ListIcon_0,-1,"[22:52:32] Testing "+Str(i))
Next i
Repeat
Event = WaitWindowEvent()
WindowID = EventWindow()
If event= #PB_Event_SizeWindow
; Since the SplitterGadget only changes the size of Frame_0, we have to
; change Panel_0's size to match
ResizeGadget(Panel_0, 0, 0, GadgetWidth(Frame_0), GadgetHeight(Frame_0))
ResizeGadget(splitter_0,0,0,WindowWidth(window_0),WindowHeight(window_0)-20)
EndIf
GadgetID = EventGadget()
If Event = #PB_Event_Gadget
EndIf
Until Event = #PB_Event_CloseWindow
End
