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++ Widgets - General questions or Mixed problems » Problem with ScrollBar and multiple controls
Re: Problem with ScrollBar and multiple controls [message #52008 is a reply to message #52003] Thu, 04 July 2019 10:58 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
ultimatecoding wrote on Wed, 03 July 2019 01:00
Unless there's some internal bug I'm unaware of, I honestly can't see what I'm doing wrong (at least conceptually).


There is internal limitation, positions are limited to +/-16383. The general reason is that sometimes we are using large numbers of widgets, e.g. in ArrayCtrl, so optimizing sizeof(Ctrl) makes sense.

Quote:

If there's a better way to accomplish what I'm trying to do, please also let me know.


You can definitely achieve what you want, you just need to place widgets relatively to view and eventually just hide / show those that are out of range. Or alternatively place them to some "out of view" position (liky y pos at 32000). (This is done e.g. in ArrayCtrl::SyncLineCtrls(int i, Ctrl *p) near the end of the method).

Also, doing this in Paint is ugly. You should rather have some "Sync positions" methods and call it from WhenScroll...


Mirek

[Updated on: Thu, 04 July 2019 11:00]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: capture mouse and limit all events to window
Next Topic: Deleting Ctrl from within itself
Goto Forum:
  


Current Time: Thu Apr 25 02:47:34 CEST 2024

Total time taken to generate the page: 0.02839 seconds