Archive for July, 2010

Creating Dialogs – Part I

Posted on July 8th, 2010 by Andreas  |  Comments Off

This part shows some sample code how a dialog is loaded and added to the dialog hierarchy. We usually try to keep the hierarchy flat, but sometimes its cleaner to use sub dialogs, so the possibility is there. definition = g_resourceManager.getResource< UIDialogDefinition >( "yesno.odlg" ); YesNoDialog pYesNoDialog = new YesNoDialog; pYesNoDialog->createFromDefinition( *pUIElementCreator, definition ); pRootDialog->addChild( [...]