Home » U++ Library support » U++ Library : Other (not classified elsewhere) » ScrollBarSize() - Is it (possibly) a bug?
Re: ScrollBarSize() - Is it (possibly) a bug? [message #59342 is a reply to message #59335] |
Sun, 18 December 2022 04:32  |
Lance
Messages: 656 Registered: March 2007
|
Contributor |
|
|
Thank you, Mirek!
It so happened that a widget I wrote used both vertical ScrollBar and horizontal ScrollBar with both scrollbars set to autohide. An edge case arose that if I set the page width, page height, total width, total height programmatically and I set the page width=total width = width of the view, and when the total height is (maybe slightly) greater than view height, an oscillation kind of events happened: a change in the visibility of one scrollbar causes the change in the visibility of the other scrollbar, the GUI keeps flickering and no user input can be processed.
I have lost my old code, am not sure if I remember what happened exactly, and am not sure if I can still reproduce the event, but I swear it happened to me.
To remedy that, I decided to disable native ScrollBar autohide behaviour and write the autohide logic myself. For that purpose, I need to query the ScrollBarSize(), ideally not in a hackish way. Currently I use the exposed global function but are feeling unsure/uncomfortable
[Updated on: Sun, 18 December 2022 04:41] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Aug 21 08:30:13 CEST 2025
Total time taken to generate the page: 0.06049 seconds
|