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 » Community » Coffee corner » U++ for newbees
U++ for newbees [message #24916] Thu, 04 February 2010 14:43 Go to next message
TRNG98 is currently offline  TRNG98
Messages: 5
Registered: January 2010
Location: Lund
Promising Member
It is very fantastic that you simply declare the layout of your progam Very Happy , but I would like to see some detailed example, where all these small steps is very detailed explained Very Happy as this is not so clear to all of us here.

MyApp().Sizeable().Run();

All the alternatives could be pointed out, and where to find
documentation/ complete lists.

CtrlLayout(modify);


If there is some default/implicit conversion of types,
this is very elegant, but as some time this should be
made clear, and a more explicit version can be compared.

array.Add(~modify.name, ~modify.surname, ~modify.address, ~modify.email);

The source and mapping of variable names

public WithAddressBookLayout<TopWindow>

... just a thought I have ....
... trying to make a child window Twisted Evil
Re: U++ for newbees [message #24932 is a reply to message #24916] Fri, 05 February 2010 04:33 Go to previous message
alendar is currently offline  alendar
Messages: 47
Registered: January 2010
Location: Idaho, USA
Member
I like the AddressBook example. I used it to get started.

A Child window: Do you mean open a window from another main window?

Here's what I did (right or wrong):

In my main window definition:

1) AboutWin aboutWindow; // private, no need to make it public

2) To a menu click, I put "aboutWindow.Open();"
This created a modeless window and showed it.

3)
void Close() {
TopWindow::Close();
}

Easy-peezy! It took a while to figure out though. There's an example of having a bunch of main windows and how to have a single event loop, but I didn't need anything fancy.

Note that you need to replace "TopWindow" with whatever you subclassed, or you'll miss something.




cd7651feeb698f6ac6cec1f6deda5e5b
Previous Topic: How to destroy your community (lwn.net article)?
Next Topic: Clang vs. GCC
Goto Forum:
  


Current Time: Thu Apr 18 03:31:38 CEST 2024

Total time taken to generate the page: 0.02175 seconds