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 #36668 is a reply to message #36667] Sun, 24 June 2012 14:36 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Well... here a simple testcase which shows a couple of interesting things :

TestLayoutZoom.lay :
LAYOUT(TestLayoutZoomLayout, 200, 100)
	ITEM(EditString, test2, LeftPosZ(112, 64).TopPosZ(40, 19))
	ITEM(EditIntSpin, charSize, LeftPosZ(112, 64).TopPosZ(16, 19))
	ITEM(Label, dv___2, SetLabel(t_("Label2 :")).LeftPosZ(4, 104).TopPosZ(44, 16))
	ITEM(Label, dv___3, SetLabel(t_("Label1 :")).LeftPosZ(4, 104).TopPosZ(20, 16))
END_LAYOUT


main.cpp :
#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#define LAYOUTFILE <TestLayoutZoom/TestLayoutZoom.lay>
#include <CtrlCore/lay.h>

class TestLayoutZoom : public WithTestLayoutZoomLayout<TopWindow>
{
	void sizeEditCb(void);
	public:
		typedef TestLayoutZoom CLASSNAME;

		TestLayoutZoom();
};

void TestLayoutZoom::sizeEditCb(void)
{
	SetStdFont(StdFont(~charSize));
}

TestLayoutZoom::TestLayoutZoom()
{
	CtrlLayout(*this, "Window title");
	charSize <<= 15;
	charSize <<= THISBACK(sizeEditCb);
}

GUI_APP_MAIN
{
	TestLayoutZoom().Run();
}


On FIRST editspin change, I see just the label sizes which change; on next editspin changes, nothing more happens.
The layout is unchanged anyways.

Expected behaviour : layout and its elements should follow edispin value.

Besides of layoyut don't being updated, it seems that calls to SetStdFont() following first one are ignored.

Max

[Updated on: Sun, 24 June 2012 14:38]

Report message to a moderator

 
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: Sat Apr 27 22:52:13 CEST 2024

Total time taken to generate the page: 0.83674 seconds