Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Understanding Frames
Re: Understanding Frames [message #3859 is a reply to message #3858] |
Sun, 02 July 2006 11:18 |
|
forlano
Messages: 1185 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
I've translated the Werner's example in the designer language. Below is the result. StaticRect can be colored. Instead LabelBox seems cannot be colored... at least not directly... maybe there is an indirect way... again via Display?...
Luigi
#include <CtrlLib/CtrlLib.h>
#define LAYOUTFILE <staticrect/layout.lay>
#include <CtrlCore/lay.h>
class App : public WithFramesLayout<TopWindow> {
public:
typedef App CLASSNAME;
App();
};
App::App()
{
CtrlLayout(*this, "Resize window to see what happens");
top_left_to_right.Color(Red);
bottom_left.Color(Green);
bottom_right.Color(Blue);
this -> Sizeable();
}
GUI_APP_MAIN
{
App app;
app.Run();
}
////////////// layout.lay ////////////////
LAYOUT(FramesLayout, 605, 451)
ITEM(StaticRect, bottom_right, RightPosZ(13, 466).BottomPosZ(8, 377))
ITEM(StaticRect, bottom_left, HSizePosZ(9, 478).BottomPosZ(8, 377))
ITEM(StaticRect, top_left_to_right, HSizePosZ(9, 13).VSizePosZ(8, 384))
END_LAYOUT
|
|
|
|
|
Understanding Frames
By: brianE on Sat, 01 July 2006 00:09
|
|
|
Re: Understanding Frames
By: forlano on Sat, 01 July 2006 10:20
|
|
|
Re: Understanding Frames
|
|
|
Re: Understanding Frames
By: Werner on Sat, 01 July 2006 22:34
|
|
|
Re: Understanding Frames
|
|
|
Re: Understanding Frames
By: Werner on Sun, 02 July 2006 13:53
|
|
|
Re: Understanding Frames
By: brianE on Sun, 02 July 2006 14:45
|
|
|
Re: Understanding Frames
By: mirek on Sun, 09 July 2006 15:53
|
|
|
Re: Understanding Frames
By: brianE on Sun, 02 July 2006 01:06
|
|
|
Re: Understanding Frames
By: forlano on Sun, 02 July 2006 11:18
|
|
|
Re: Understanding Frames
By: Werner on Sun, 02 July 2006 13:13
|
|
|
Re: Understanding Frames
By: brianE on Sun, 02 July 2006 14:08
|
|
|
Re: Understanding Frames
By: mirek on Sun, 09 July 2006 15:58
|
Goto Forum:
Current Time: Tue May 21 11:44:15 CEST 2024
Total time taken to generate the page: 0.02393 seconds
|