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 » Look and Chameleon Technology » Bug: Ctrl::NoLayoutZoom() has no effect
Bug: Ctrl::NoLayoutZoom() has no effect [message #35773] Mon, 19 March 2012 22:46 Go to previous message
steffen is currently offline  steffen
Messages: 38
Registered: May 2007
Location: Denmark
Member

I'm using Upp-4193 on Ubuntu 10.10 64-bit.

My program should run on embedded hardware with a VGA screen and I was trying to test it without zooming. I designed my program to fit the 640x480 pixel VGA resolution, but the zooming makes it larger.

I would expect NoLayoutZoom to turn off the zooming, is that correct?

NoLayoutZoom calls ReSkin which resets the zooming before calling Csizeinit. It ends up with the same scale as before.

On my system (laptop) my default StdFont gives another size than hardcoded: Dsize = Size(99, 13), giving me a somewhat larger program window than expected.

Tomorrow I will try it on the embedded hardware to see if it scales correctly there.

Regards,
Steffen

Edit:
This is strange. I tried to build my project on another workstation and then suddenly the NoLayoutZoom function works.
It is using a local copy of uppsrc and they are different:
// Woking:
void Ctrl::NoLayoutZoom()
{
	GuiLock __;
	Csize = Dsize = Size(1, 1);
}

// NOT working:
void Ctrl::NoLayoutZoom()
{
	GuiLock __;
	Csize = Dsize = Size(1, 1);
	ReSkin();
}

Both systems are Upp-4193 on Ubuntu 10.10 64-bit, but U++ has been installed and updated for several years on the workstation.

Is there a way to see what version of uppsrc is in my local copy?

Would it be better for me to use the latest from svn?

[Updated on: Tue, 20 March 2012 08:47]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RichTextView and Chameleon with a dark background.
Next Topic: undesired behavior using custom styled MenuBar
Goto Forum:
  


Current Time: Sun Apr 28 21:00:00 CEST 2024

Total time taken to generate the page: 0.03184 seconds