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 » Dialog box with some internal actions
Dialog box with some internal actions [message #31623] Fri, 18 March 2011 09:52 Go to previous message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi,

I have a modal dialog box with 3 buttons (let's say : Ok, Cancel and Action). Action is some stuff to do inside the dialog box. I wrote this code :

struct MyDlg : public WithMydialogLayout<TopWindow> {
	...
	void DoAction();
	...
	MyDlg() {
		...
		action.WhenPush <<= THISBACK(DoAction);
	}
}

MyDlg::DoAction() {
...
}


I get an error :
error : 'DoAction' is not a member of 'Upp:TopWindow'


Surely, I should not use WithMydialogLayout<TopWindow>, but I don't understand what to use instead ? Is there some simple example showing how to do that ?

I think that the difficulty for me is that I don't understand well what the code
WithMydialogLayout<TopWindow>

is doing... I suppose that we ask to construct a dialog box from the Layout, with 'TopWindow' as base class ? But what are the possible base classes for dialog boxes ? I was unable to find some document describing the base classses and their hierarchy (as I suggested in this post, some more links between the various pages of documentation should help everybody a lot, especially beginners Wink )
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dialog boxes : why struc instead of class ?
Next Topic: Install Error
Goto Forum:
  


Current Time: Tue May 14 09:24:32 CEST 2024

Total time taken to generate the page: 0.01463 seconds