
Good job, as usual.
Very useful.
Thanks for sharing.
Code: Select all
XIncludeFile "nxTools_Resize.pbi"
If OpenWindow(0, 0, 0, 322, 220, "PanelGadget", #PB_Window_SizeGadget | #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
PanelGadget (0, 8, 8, 306, 203)
AddGadgetItem (0, -1, "Works fine!")
ListViewGadget(1, 5, 5, 288, 163)
AddGadgetItem (0, -1,"Hmmm....")
ListViewGadget(2, 5, 5, 288, 163)
CloseGadgetList()
nxTools_SetResize(0, #nxResize_Anchorall)
nxTools_SetResize(1, #nxResize_Anchorall)
nxTools_SetResize(2, #nxResize_Anchorall)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Code: Select all
XIncludeFile "nxTools.pbi"
If OpenWindow(0, 0, 0, 322, 220, "PanelGadget", #PB_Window_SizeGadget | #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
PanelGadget (0, 8, 8, 306, 203)
AddGadgetItem (0, -1, "Works fine!")
ListViewGadget(1, 5, 5, 288, 163)
AddGadgetItem (0, -1,"Hmmm....")
ListViewGadget(2, 5, 5, 288, 163)
CloseGadgetList()
nxTools_SetResize(0, #nxResize_Anchorall)
nxTools_SetResize(1, #nxResize_Anchorall)
SetGadgetState(0,1)
SetGadgetState(0,0)
nxTools_SetResize(2, #nxResize_Anchorall)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf