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 » Nothing shows up...
Re: Nothing shows up... [message #1498 is a reply to message #1497] Mon, 06 March 2006 18:46 Go to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
iplayfast wrote on Mon, 06 March 2006 12:34

OK, that is very helpful. One more question. (since you are watching).

I've got 2 layouts, the game and the options. From what I've read these controls on these layouts are built into the class so the values are always present.

To access a ctrl (say a checkbox called Multiplayer) in the option layout from the game class I would do
bool value = options.Multiplayer ~;
and
options.Multiplayer <<= value;

Is this correct?



Yes. (Just "value = ~options.Multiplayer").

Option also has alternative interface - operator= and operator bool(). Means you will not in most cases need "bool value", just

if(options.Multiplayer)
....

options.Multiplayer = true;

Note that you can even serialize content of dialog to make this persistent. No need to store data in paralel structures (in most cases).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: layout editor [BUG][FIXED]
Next Topic: Layout 602 Fedora/Gnome [BUG]
Goto Forum:
  


Current Time: Thu May 09 06:02:59 CEST 2024

Total time taken to generate the page: 0.03766 seconds