Home » Community » Newbie corner » Form Designer
Re: Form Designer [message #24927 is a reply to message #24926] |
Fri, 05 February 2010 00:14   |
Didier
Messages: 726 Registered: November 2008 Location: France
|
Contributor |
|
|
Hi !
To open the form designer: add a xxx.lay layout file in the project.
Select the added file ==> the form designer (==layout editor) opens.
The Layout editor only allows to set the layout of widgets and set (some) properties.
All the rest has to coded but is quite easy though.
To add an image to a button:
myButtonInstance.SetImage( image );
where 'myButtonInstance' comes from the layout designer when you use something like:
class MyClass : public WithMyLayout<TopWindow>
The image can be retreived from internal images by using :
where 'MyImgIml' is the name of the class associated to an '.iml' file included in the project. But you need to have the associated declarations in you're code
//in a header file
#define IMAGECLASS MyImgIml
#define IMAGEFILE <MyProject/MyImlFile.iml>
#include <Draw/iml_header.h>
// in one source file
#define IMAGECLASS MyImgIml
#define IMAGEFILE <MyProject/MyImlFile.iml>
#include <Draw/iml_source.h>
[Updated on: Fri, 05 February 2010 00:15] Report message to a moderator
|
|
|
 |
|
Form Designer
By: gedumer on Thu, 04 February 2010 20:37
|
 |
|
Re: Form Designer
|
 |
|
Re: Form Designer
By: gedumer on Thu, 04 February 2010 23:06
|
 |
|
Re: Form Designer
By: Didier on Fri, 05 February 2010 00:14
|
 |
|
Re: Form Designer
By: gedumer on Fri, 05 February 2010 03:22
|
 |
|
Re: Form Designer
By: alendar on Fri, 05 February 2010 03:57
|
 |
|
Re: Form Designer
By: gedumer on Fri, 05 February 2010 04:43
|
 |
|
Re: Form Designer
|
 |
|
Re: Form Designer
By: mrjt on Fri, 05 February 2010 12:52
|
 |
|
Re: Form Designer
By: mirek on Fri, 05 February 2010 13:39
|
 |
|
Re: Form Designer
|
 |
|
Re: Form Designer
By: mirek on Fri, 05 February 2010 16:02
|
 |
|
Re: Form Designer
By: mrjt on Fri, 05 February 2010 17:37
|
 |
|
Re: Form Designer
By: mirek on Fri, 05 February 2010 22:49
|
 |
|
Re: Form Designer
By: mirek on Fri, 05 February 2010 13:34
|
Goto Forum:
Current Time: Wed May 14 17:23:47 CEST 2025
Total time taken to generate the page: 0.00688 seconds
|