Page 1 of 1

#PB_ListIcon_AlwaysShowSelection has no effect

Posted: Sat Apr 28, 2018 2:04 pm
by spikey
PB5.62 64 bit, Windows 7.

A ListIcongadget with the flag #PB_ListIcon_AlwaysShowSelection has an identical behaviour to one without it.

The second example from the help file page demonstrates the problem.

Re: #PB_ListIcon_AlwaysShowSelection has no effect

Posted: Sat Apr 28, 2018 6:28 pm
by Michael Vogel
Works as expected here (at least with PB5.61):
- if no item has been selected, there's no visible cursor
- this will change as soon an item has been selected (just insert something like SetGadgetState(4,1) to the example file)
- depending on your windows theme, you might see only a very light colored cursor when the gadget doesn't have the keyboard focus

Re: #PB_ListIcon_AlwaysShowSelection has no effect

Posted: Sat Apr 28, 2018 10:24 pm
by spikey
Never mind, it seems to be a Windows problem not a PureBasic one. The controls are getting the LVS_SHOWSELALWAYS style - but it doesn't actually do anything about it, on my pc at least.

Re: #PB_ListIcon_AlwaysShowSelection has no effect

Posted: Sun Apr 29, 2018 9:58 am
by Michael Vogel
No problem, had also a special windows experience some weeks ago. Maybe a simple restart of windows could help...