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 » TabCtrl » TabBar crash fix (very crude one, needs author to rewrite it)
Re: TabBar crash fix (very crude one, needs author to rewrite it) [message #30615 is a reply to message #30614] Wed, 12 January 2011 17:23 Go to previous messageGo to previous message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Been thinking more about the "cross" value, and IMHO in principle it's cached value.

So whenever it may have changed (mouse move, tab add/remove/scroll/resize(rename)/style change), the cache should be invalidated.

And the TabBar::LeftDown should recalculate it whenever it's invalid directly from "p", if I understand it correctly.

Or how about canceling the cache-way completely, is it really so beneficial? Just using the mouse coords every time and traversing trough active areas definitions. (does look to me "cheap" enough to trade the code complexity for it)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cross-platform TabBar issue (revision 3063)
Next Topic: How to highlight particular tab when corresponding button is clicked
Goto Forum:
  


Current Time: Thu May 23 06:08:20 CEST 2024

Total time taken to generate the page: 0.02175 seconds