Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
Lance is currently offline  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 Smile

[Updated on: Sun, 18 December 2022 04:41]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: bug in the routine involving the time of the zip file
Next Topic: why there's still empty space below a ColumnList ctrl after I set RoundSize?
Goto Forum:
  


Current Time: Thu Aug 21 11:20:19 CEST 2025

Total time taken to generate the page: 0.05489 seconds