Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Layout (Forms) Designer » IDE&GUI Builder Help
IDE&GUI Builder Help [message #48] Tue, 22 November 2005 21:29 Go to next message
GizmoGorilla is currently offline  GizmoGorilla
Messages: 2
Registered: November 2005
Junior Member
Dont know if this is the right spot for this so please excuse me if its not. Im getting back into programming after many years being away from it. Im looking for an IDE and a GUI builder to go with it. I've been looking at wxWidgets and it looks like it has both. It doesnt seem to me theres a GUI builder with U++. Is there a gui builder for U++. I would like to drag/drop widgets and have the code generated, and Im interested in tools that are gpl licensed. Any guidance or recomendations are greatly appreciated.


Thanks!
Gizmogorilla
Re: IDE&GUI Builder Help [message #49 is a reply to message #48] Tue, 22 November 2005 21:55 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11991
Registered: November 2005
Ultimate Member
Yes, there is something that is equivalent to "GUI builder" in U++.

It is Layout Designer. To activate it, just start editing file with the .lay extension.

U++ does not generate the code - it is not needed. Instead, this .lay file is by some freaky process we tent to define as "multiincluding" converted to C++ templates that define layout of your dialogs (in other words, your GUI).

P.S.: BTW, instead of drag-drop widgets, right-click on layout to get menu.

P.P.S.: U++ is BSD licensed. The difference it that unlike GPL, you can use it for ANY purposes for fre..
Re: IDE&GUI Builder Help [message #53 is a reply to message #49] Tue, 22 November 2005 23:06 Go to previous messageGo to next message
IAmMe is currently offline  IAmMe
Messages: 1
Registered: November 2005
Junior Member
Quote:

It is Layout Designer. To activate it, just start editing file with the .lay extension.


good to know

Quote:

U++ does not generate the code - it is not needed. Instead, this .lay file is by some freaky process we tent to define as "multiincluding" converted to C++ templates that define layout of your dialogs (in other words, your GUI).


yes


Quote:

P.S.: BTW, instead of drag-drop widgets, right-click on layout to get menu.


good to know too...

ok so now, i have an empty layout. I would like to add a RichTextEdit and a menu bar. How can i do that?

Could you plz do a "How to start a GUI app tutorial" web page plz?

Thx, your software seems great.
Re: IDE&GUI Builder Help [message #67 is a reply to message #53] Wed, 23 November 2005 07:51 Go to previous messageGo to next message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member
IAmMe wrote on Tue, 22 November 2005 17:06



ok so now, i have an empty layout. I would like to add a RichTextEdit and a menu bar. How can i do that?

Could you plz do a "How to start a GUI app tutorial" web page plz?

Thx, your software seems great.




On the upp website upp.sf.net, have a look at doc page
http://upp.sourceforge.net/www$uppweb$documentation$en-us.ht ml

The key things to look at are overview
http://upp.sourceforge.net/www$uppweb$overview$en-us.html

and slicing the hello world example, which shows how to create a menu
http://upp.sourceforge.net/examples$uppweb$HelloWorld$en-us. html

Also look at the Menu reference example.

To create a RichEdit component you need to right click on layout window, select "User Class", then in the pane to the left of the layout window you need to type RichEdit (there's a drop down button but RichEdit isn't in the list yet) - you can also put RichEditWithToolBar - this is the "class name field" and to its right is the variable name field (where you put the name you choose for the RichEdit object).

You also need to add this to your header file before the .lay include
#include <RichEdit/RichEdit.h>

and you need to add the RichEdit package to your main package.

(RichEdit is a bit more complex than most widgets - it's also powerful).

Graeme





Re: IDE&GUI Builder Help [message #68 is a reply to message #53] Wed, 23 November 2005 09:02 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11991
Registered: November 2005
Ultimate Member
In addition to what Graeme said, to have window with richedit and menu, it is usually better to actually avoid using layout and use MenuBar as frame.

struct MyEditorWindow {
    MenuBar  menu;
    RichEdit edit;
.......
    MyEditorWindow() {
       Add(edit.SizePos()); // will fill entire view area
       AddFrame(menu); // will be at the top, reducing the view area
       .....
    }
};


Mirek
Re: IDE&GUI Builder Help [message #72 is a reply to message #48] Wed, 23 November 2005 10:04 Go to previous messageGo to next message
shoocho is currently offline  shoocho
Messages: 1
Registered: November 2005
Location: China
Junior Member
You should also add the following line:

#include <RichEdit/RichEdit.h>
Re: IDE&GUI Builder Help [message #440 is a reply to message #53] Mon, 02 January 2006 13:27 Go to previous messageGo to next message
cioannou is currently offline  cioannou
Messages: 45
Registered: January 2006
Location: Greece
Member
Quote:



Could you plz do a "How to start a GUI app tutorial" web page plz?

Thx, your software seems great.



That's what I am looking for too , designed a window , put an ArrayCtrl & a label but all I get is a plain empty window.

Can't figure out what to do now.
Re: IDE&GUI Builder Help [message #441 is a reply to message #440] Mon, 02 January 2006 13:36 Go to previous message
mirek is currently offline  mirek
Messages: 11991
Registered: November 2005
Ultimate Member
I guess that you are missing

CtrlLayout[OK][Cancel](dlg [, "title"])

call.

Check this reference example please:

http://upp.sourceforge.net/reference$Layout.html

Mirek
Next Topic: layout help
Goto Forum:
  


Current Time: Tue Aug 20 20:58:18 CEST 2019

Total time taken to generate the page: 0.01328 seconds