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 » Newbie corner » Message from the system.
Re: Message from the system. [message #27121 is a reply to message #27119] Sat, 26 June 2010 22:07 Go to previous messageGo to previous message
281264 is currently offline  281264
Messages: 272
Registered: June 2010
Location: Spain
Experienced Member
Hi,

I am attaching the files of the application in question (please remember that the purpose is to get familiar with U++). The application is very simple: open a dialog by clicking the button in the TopWindow; then type two (double) values in the Edit Fields; then press OK button , close dialog and then compute the multiplication and then show the outcome in the EditField in the TopWindow.

The idea is to practice with dialogs: how to create them, how to transfer values to the TopWindow, etc.

You will see that I still have no idea about how to position the widgets in the dialog, therefore the layout in the dialog is rubbish.

Taking advantage of your help, please allow me to ask some questions:

1.- How to pass the values from the EditFields in the dialog to the TopWindow; so far I have declared public the variables in the dialog so they can be accessed;
2.- How a string captured by a EditField can be converted to a numerical value (let us say double) and vice versa;
3.- How a dialog can be “closed” without having problems with the memoey? For example how is guaranteed that the dialog is deleted.
4.- In the manual I have seen expressions of this kind:
virtual Value Scan(const Value& text) const
4.1.- What is the role of the “virtual” qualifier? I have seen that virtual functions are specially made for been overridden.
4.2.- Why the argument is a &?
4.3.- Any other suggestion related with "good" practices when programming.

I am sorry about my poor knowledge of C++. Your help is very appreciated.

Many thanks.

Best wishes,

Javier
 
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
Read Message
Read Message
Read Message
Read Message
Previous Topic: Usage of "new" and "delete" in U++
Next Topic: Problems when using layouts
Goto Forum:
  


Current Time: Mon Apr 28 15:34:00 CEST 2025

Total time taken to generate the page: 0.00864 seconds