[Implemented] #PB_ListIcon_CheckBoxes with third option
Posted: Thu Aug 20, 2009 11:59 pm
How about a third option in the ListIconGadget (with checkboxes) like the new CheckBoxGadget() with #PB_Checkbox_Inbetween? I would use it to make the '-' item be non-selectable.
something like (example does not work):
By using the same constants there would be consistency.
something like (example does not work):
Code: Select all
If OpenWindow(0, 100, 100, 410, 100, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListIconGadget(0, 5, 5, 390, 90, "Name", 100, #PB_ListIcon_CheckBoxes | #PB_CheckBox_ThreeState)
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")
;SetGadgetItemState(0,1,#PB_Checkbox_Checked)
;SetGadgetItemState(0,1,#PB_Checkbox_UnChecked)
SetGadgetItemState(0,1,#PB_Checkbox_Inbetween)
Repeat
Until WaitWindowEvent()t = #PB_Event_CloseWindow
EndIf