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 |
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
|
|
|
|
|
Zooming layouts and different behaviour windows/linux
By: mdelfede on Wed, 10 August 2011 19:18
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mdelfede on Thu, 11 August 2011 10:30
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mirek on Fri, 12 August 2011 17:09
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mdelfede on Fri, 12 August 2011 17:23
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mirek on Fri, 12 August 2011 17:28
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mdelfede on Fri, 12 August 2011 17:34
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mirek on Sat, 13 August 2011 03:12
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mdelfede on Sun, 14 August 2011 02:13
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mdelfede on Sun, 14 August 2011 17:50
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mirek on Mon, 15 August 2011 15:28
|
|
|
Re: Zooming layouts and different behaviour windows/linux
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mdelfede on Thu, 18 August 2011 01:34
|
|
|
Re: Zooming layouts and different behaviour windows/linux
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mdelfede on Thu, 18 August 2011 14:59
|
|
|
Re: Zooming layouts and different behaviour windows/linux
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mirek on Fri, 26 August 2011 14:02
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mirek on Sat, 27 August 2011 02:30
|
|
|
Re: Zooming layouts and different behaviour windows/linux
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mirek on Sun, 28 August 2011 09:00
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mdelfede on Fri, 02 September 2011 15:26
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mirek on Fri, 02 September 2011 17:51
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mirek on Tue, 06 September 2011 14:09
|
|
|
Re: Zooming layouts and different behaviour windows/linux
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mirek on Thu, 08 September 2011 09:56
|
|
|
Re: Zooming layouts and different behaviour windows/linux
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mdelfede on Wed, 17 August 2011 13:43
|
|
|
Re: Zooming layouts and different behaviour windows/linux
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mirek on Sun, 24 June 2012 13:04
|
|
|
Re: Zooming layouts and different behaviour windows/linux
|
|
|
Re: Zooming layouts and different behaviour windows/linux
|
|
|
Re: Zooming layouts and different behaviour windows/linux
|
|
|
Re: Zooming layouts and different behaviour windows/linux
By: mirek on Sun, 24 June 2012 15:09
|
|
|
Re: Zooming layouts and different behaviour windows/linux
|
Goto Forum:
Current Time: Sat Apr 27 22:52:13 CEST 2024
Total time taken to generate the page: 0.83674 seconds
|