SetGadgetItemState(....) question

Everything else that doesn't fall into one of the other PB categories.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

SetGadgetItemState(....) question

Post by SFSxOI »

The help has this for 'SetGadgetItemState':
SetGadgetItemState(#Gadget, Item, State)

- ListIconGadget(): Combination of the following values:
#PB_ListIcon_Selected : The item should be selected.
#PB_ListIcon_Checked : The item should have its checkbox checked (#PB_ListIcon_CheckBoxes flag).
#PB_ListIcon_Inbetween: The item should have its checkbox in the in between state (#PB_ListIcon_ThreeState flag).
Evidently according to the help there is no valid condition or setting where the ListIconGadget() gadget state can be set to unchecked by use of SetGadgetItemState(...), and the help does not mention any other methods for setting the state to unchecked (yes, before anyone posts "just uncheck it." or similar, its understood that it can be manually unchecked). Why doesn't PureBasic have a state of '#PB_ListIcon_UnChecked' available for use with the 'SetGadgetItemState(...)' function when setting a ListIconGadget() gadget state ?
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: SetGadgetItemState(....) question

Post by Keya »

I came across this when searching for an uncheck option for tree control and it had no replies/answers so I'm just appending for future reference.
SFSxOI wrote:Why doesn't PureBasic have a state of '#PB_ListIcon_UnChecked' available
Although there is no "#PB_ListIcon_Unchecked" (or "#PB_Tree_Unchecked" in my case) ... there is a........ wait for it....... 0, which does the trick :)
Post Reply