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 » Zooming layouts and different behaviour windows/linux
Re: Zooming layouts and different behaviour windows/linux [message #33474 is a reply to message #33470] Thu, 11 August 2011 10:30 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
This couple of lines (another hacky stuff....) fix the tabs height problem. Height calculation is from trial-and-error, as I've not found any "intelligent" way to calculate it exactly :

	TabCtrl::Style& tabCtrl_style = TabCtrl::StyleDefault().Write();
	tabCtrl_style.tabheight = Ctrl::VertLayoutZoom(Font::GetStdFontSize().cy);


Thinking a bit more about my size problems, I got following conclusions :

1) Changing default font height *don't* rescale automatically the widgets.... why ? Of course, you can do it with another line of code, but imho it should to automatically.

2) Tabs needs some fixing to behave properly with zooming.
By now their size is based on font size, I guess default one; they don't take in account any scaling.

I think the best solution should be to fix point 1 (make zoom automatical with default font changes) and change automatically Tabs height depending on it.

Ciao

Max
 
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
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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PushButton with text in the bottom
Next Topic: What is best way to obtain button info via callback?
Goto Forum:
  


Current Time: Sun Apr 28 17:43:15 CEST 2024

Total time taken to generate the page: 0.04592 seconds