U++ framework
Do not panic. Ask here before giving up.

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 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1244
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?... Rolling Eyes

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

 
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: Mapping button to CALLBACK
Next Topic: scrolling without Frame and wrapping Ctrl?
Goto Forum:
  


Current Time: Fri Oct 16 11:13:25 GMT+2 2026

Total time taken to generate the page: 0.33924 seconds