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
Zooming layouts and different behaviour windows/linux [message #33470] Wed, 10 August 2011 19:18 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Hi,

As some of my customers complained about small fonts in windows version of my app, I started do dig a bit inside.
The worst stuff was a RichTextCtrl with a drawing inside, which got completely different scale.

Resuming, with NO changes in code, here the windows (from a full-screen running virtualizer, resolution 1440x900 as native one) :
index.php?t=getfile&id=3411&private=0

You can also notice the picture upper right (a Picture control),
this one is made by aid of Painter + Drawing; internal sizes calculations are based on fixed font size, so the windows version get shrinked (font size 15, windows one 11 IIRC).

Adding this couple of lines makes it better :

#ifdef PLATFORM_WIN32
	SetStdFont(StdFont(15));
	Ctrl::SetZoomSize(Size(147, 21), Size(99, 13));
	InitRichTextZoom();
#endif


index.php?t=getfile&id=3412&private=0

But IMHO it's really an ugly hack... but I had to do it because I was in hurry. It's taken from Linux values and code.
Btw, you can notice that tabs are NOT zoomed vertically, so the 2 editfields at top overlap with tab contents when zoomed, so I
believe it's a bug.... or not ?

Finally, the nice-looking linux version here; that one has fonts quite bigger than windows version, and I don't know why :

index.php?t=getfile&id=3413&private=0

So, some questions :

1) Why are font sizes SO different from windows to linux ?
2) It's correct that tabs are not zoomed vertically ?
3) Applying this :
	Ctrl::SetZoomSize(GetStdFont().GetSize(), Size(99, 13));

Sometimes the "growth" of elements don't match text one, so, for example, for some text sizes the buttons become too small to contain its label. Shouldn't they grow exactly (almost) as the text ?

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: Fri Mar 29 00:35:55 CET 2024

Total time taken to generate the page: 0.01851 seconds