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 » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » Constructor with parameter
Re: Constructor with parameter [message #9521 is a reply to message #9520] Mon, 14 May 2007 13:01 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
michael wrote on Mon, 14 May 2007 05:50

Ok, that works.

Is there a way to get the Title of the Dialog after is was created?

I want to use this to do some if-selections with the title.

For example:

if(title == "create") do this
if(title == "edit") do that

Michael


Well, this does not sound as a good idea to me at all, but if you insist, you can use GetTitle method (just beware, it returns WString - you can convert back to String by calling ToString - dlg.GetTitle().ToString()).

The correct solution would be either to use virtual methods, or some int member variable with enum (depends on situation).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unable to compile with Irrlicht
Next Topic: How to access other classes variables?
Goto Forum:
  


Current Time: Thu May 16 15:25:46 CEST 2024

Total time taken to generate the page: 0.01572 seconds