Home » U++ TheIDE » U++ TheIDE: Layout (Forms) Designer » HOWTO Layout designer?
HOWTO Layout designer? [message #16220] |
Mon, 02 June 2008 22:41  |
Michel
Messages: 10 Registered: June 2008
|
Promising Member |
|
|
Hi,
Is there a documentation available on how to use the Layout designer? After some time, I discovered by mere accident that I had to right click on the layout file in order to "Add a new layout".
I am sure there is some further explanation somewhere?
Also, how do I show the layout in the program?
Sorry for these beginner questions, but I just couldn't find an answer...
Thank you,
Michel
edit:
From looking at the sample files, I suppose that the CtrlLayout function is used to show a layout?
The compiler gives me an error message, unfortunately. I guess, I have to inherit from some class, but which?
The error:
/home/michel/upp-beta/uppsrc/CtrlCore/TopWindow.h: In function ‘void Upp::CtrlLayout(T&) [with T = MyAppWindow]’:
/home/michel/upp-beta/MyApps/main/main.cpp:36: instantiated from here
/home/michel/upp-beta/uppsrc/CtrlCore/TopWindow.h:232: error: no matching function for call to ‘InitLayout(MyAppWindow&, MyA
ppWindow&, MyAppWindow&, MyAppWindow&)’
[Updated on: Mon, 02 June 2008 22:52] Report message to a moderator
|
|
|
Re: HOWTO Layout designer? [message #16221 is a reply to message #16220] |
Mon, 02 June 2008 23:05   |
Michel
Messages: 10 Registered: June 2008
|
Promising Member |
|
|
I guess, I am not being bright, because it took me an hour, but I found it 
If I say something like this
class MyAppWindow : public Withxxx <TopWindow> {
...
};
with 'xxx' being the name of the layout, it compiles and shows the layout!
[Updated on: Mon, 02 June 2008 23:05] Report message to a moderator
|
|
|
|
|
|
|
|
Re: HOWTO Layout designer? [message #16237 is a reply to message #16232] |
Tue, 03 June 2008 14:21   |
Michel
Messages: 10 Registered: June 2008
|
Promising Member |
|
|
Ok, thank you, that looks insightful.
Could there be an explanation why designer is not showing any controls that can be added to the layout?
Is it recommended to "hard code" the layout by hand, because the designer doesn't always work?
Edit: When creating a new package, the Template list is empty, so it is not possible to select a CtrLib application? (2008.2 beta)
Edit2: Ok, found the solution: CtrlLib is to be added by hand (using "Insert new package"), after which the designer can be used without problem.
I suppose when one gets to understand UPP, it really seems a solid programming environment.
Too bad about the documentation? I'm sure it would be a lot more "popular", if there were a good beginner's guide?
Anyway, I'm glad it is working now
[Updated on: Tue, 03 June 2008 15:04] Report message to a moderator
|
|
|
Re: HOWTO Layout designer? [message #16569 is a reply to message #16220] |
Fri, 27 June 2008 06:50   |
Infausto
Messages: 28 Registered: June 2008
|
Promising Member |
|
|
hello forum. This is my first topic (reply in fact) and i just started to use this amazing IDE. UPP y very professional and very cool. But i have a litte noob question. How i insert a new Layout in my project?. I insert a new file called "Options.lay" with the command "Insert package directory file(s)". Then an Layout editor is open but i cannot insert a "frame" to start the addition of widgets... Any suggestions??
thx in advance.
EDIT: one second after end this post i found the solution... i feel stuppind
[Updated on: Fri, 27 June 2008 06:52] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:15:26 CEST 2025
Total time taken to generate the page: 0.01246 seconds
|