SetParent Method

WRAPPER_API bool SetParent(QWidget *parent, unsigned int flags = 0)

WRAPPER_API bool SetParent(HWND *parent, unsigned int flags = 0)

 

Description

The SetParent method sets the window that acts as the parent for the DataSourcePicker dialog.  When the dialog is constructed, the parent must be specified.  This method can be used to change the parent after construction. Note: the HWND version of this method is only available in Windows.

 

Example

void DataSourcePicker_SetParent(GeoCalcPBW::DataSourcePicker & editor, HWND newParent)

{

const wchar_t * caption = editor.GetTitleBarCaption();

editor.SetTitleBarCaption(L"DataSourcePicker Dialog");

editor.SetParent(newParent);

GeoCalcPBW::GeoBase::ObjectType objType;

GeoCalcPBW::Serializable * selectedObject = NULL;

GeoCalcPBW::EDialogState retVal = editor.Show(&selectedObject, &objType);

}