Code: Select all
If OpenWindow(0, 100, 100, 300, 100, "Window 1", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListIconGadget(0, 5, 5, 290, 90, "Name", 100, #PB_ListIcon_FullRowSelect)
AddGadgetColumn(0, 1, "Address", 250)
AddGadgetItem(0, -1, "Harry Rannit"+Chr(10)+"12 Parliament Way, Battle Street, By the Bay")
AddGadgetItem(0, -1, "Ginger Brokeit"+Chr(10)+"130 PureBasic Road, BigTown, CodeCity")
s = GetWindowLong_(GadgetID(0), #GWL_STYLE)
s = s | #LVS_NOSORTHEADER
SetWindowLong_(GadgetID(0), #GWL_STYLE, s)
EndIf
If OpenWindow(1, WindowX(0), WindowY(0) + WindowHeight(0) + 50, 300, 100, "Window 2", #PB_Window_SystemMenu)
LFlags = #PB_ListIcon_FullRowSelect | #LVS_NOSORTHEADER
ListIconGadget(1, 5, 5, 290, 90, "Name", 100, LFlags)
AddGadgetColumn(1, 1, "Address", 250)
AddGadgetItem(1, -1, "Harry Rannit"+Chr(10)+"12 Parliament Way, Battle Street, By the Bay")
AddGadgetItem(1, -1, "Ginger Brokeit"+Chr(10)+"130 PureBasic Road, BigTown, CodeCity")
EndIf
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow