Page 1 of 1

small listview enhancement

Posted: Fri Nov 10, 2017 11:05 am
by Bitblazer
the ability to disable or hide checkboxes on specific entries in a listview gadget.Suggested solution:

SetGadgetItemState(#Gadget, Item, State)

currently State can only be 0 or 1 so the checkbox can be selected or unselected but neither hidden, half-selected or disabled.
New usage suggestion:

SetGadgetItemState(#Gadget, Item, State)
State:
#PB_Checkbox_Checked
#PB_Checkbox_Unchecked
#PB_Checkbox_Inbetween
#PB_Checkbox_Disabled
#PB_Checkbox_Hidden

Dunno if both are disabled and hidden are needed, at least disabled would be useful. Would make my app look less confusing to end users as i list time entries per day and being able to select time entries in the past, makes no sense without a time machine for my app ;)

Re: small listview enhancement

Posted: Fri Nov 10, 2017 11:21 am
by IdeasVacuum
That would be a great enhancement. It is probably very difficult for Fred to implement it though - for example, it's not necessarily supported by all of the underlying OS APIs.

Here though is a simple example on Windows OS (C++):
https://stackoverflow.com/questions/119 ... ific-items

I think much depends on how much your list can grow dynamically, because it should be possibly to DIY exactly what you need using a Canvas Gadget.

Re: small listview enhancement

Posted: Sat Nov 11, 2017 4:41 am
by Bitblazer
IdeasVacuum wrote:That would be a great enhancement. It is probably very difficult for Fred to implement it though - for example, it's not necessarily supported by all of the underlying OS APIs.

Here though is a simple example on Windows OS (C++):
https://stackoverflow.com/questions/119 ... ific-items

I think much depends on how much your list can grow dynamically, because it should be possibly to DIY exactly what you need using a Canvas Gadget.
Thanks i will look into it. Windows is enough for this project.The list is rather small - between 1 to 60 items. A canvas gadget sounded nice some weeks ago, till i had some "unfixable" problems and "everybody" was telling me to use a listview ;)

Re: small listview enhancement

Posted: Sat Nov 11, 2017 6:10 am
by said
Hi,

Until the required enhancements are added ... have you considered a ListIcon gadget, it can show checkboxes along with texts

Said