Public Member Functions | |
wxDynamicPropertySheetDialog () | |
~wxDynamicPropertySheetDialog () | |
void | SetTabType (TabType t) |
Protected Member Functions | |
virtual wxBookCtrlBase * | CreateBookCtrl () |
Protected Attributes | |
TabType | m_TabType |
DlgOp,: | The DialogOp we are creating a window for [INPUTS] |
MainInstance: Instance handle of the module that contains the dialog defined by MainDlgID. MainDlgID: Resource identifier of the main dialog box SubInstance: Instance handle of the module that contains the dialog defined by SubDlgID. SubDlgID: Resource identifier of the secondary dialog box to merge with the main one (0 if none). Mode: Dialog mode (Modal, Modeless) OpeningPage: Index of the tabbed page which we need to open (0 if none).
If the Dialog is Modeless then the Open method needs to be called to make the dialog visible.
If the dialog has not been created before then it is positioned centrally on the screen. Otherwise the dialog's position is restored to the position it was at the last time it was deleted.
If SubDlgID is non-0, then this dialog is merged with the main one during the creation of the dialog. If it is 0, then no merging is done (the DialogOp() function should take care of all this), and SubInstance is ignored.
If it is a tabbed dialog that is being created then we can now specify the opening tab. Usually, this will be the first one if this box has not been opened before or the one selected when it was closed. This parameter allows this to be overriden.
Note that this function sets the DialogOps window ID
Note: It is important that all dialogs do not have the Visible property set.
Definition at line 258 of file dlgmgr.cpp.
|
Definition at line 261 of file dlgmgr.cpp. 00261 {m_TabType=TABTYPE_TABS;}
|
|
Definition at line 262 of file dlgmgr.cpp.
|
|
Definition at line 266 of file dlgmgr.cpp. 00267 { 00268 INT32 style = wxCLIP_CHILDREN | wxBC_DEFAULT; 00269 wxBookCtrlBase* pBook = NULL; 00270 00271 switch (m_TabType) 00272 { 00273 #if wxUSE_LISTBOOK 00274 case TABTYPE_LIST: 00275 return new wxListbook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style ); 00276 break; 00277 #endif 00278 #if wxUSE_CHOICEBOOK 00279 case TABTYPE_CHOICE: 00280 return new wxChoicebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style ); 00281 break; 00282 #endif 00283 #if wxUSE_TREEBOOK || wxXTRA_TREEBOOK 00284 case TABTYPE_TREE: 00285 { 00286 wxTreebook * t = new wxTreebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style ); 00287 if (t) 00288 t->GetTreeCtrl()->SetIndent(0); 00289 return t; 00290 } 00291 break; 00292 #else 00293 // Default to a ListBook if there is no treebook availables 00294 case TABTYPE_TREE: 00295 return new wxListbook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style ); 00296 break; 00297 #endif 00298 #if wxUSE_TOOLBOOK 00299 case TABTYPE_TOOLBAR: 00300 return new wxToolbook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style ); 00301 break; 00302 #endif 00303 case TABTYPE_TABS: 00304 default: 00305 pBook = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style ); 00306 00307 PORTNOTE("dialog", "This should probably be applied to all controls eventually") 00308 // Fabricate a Xara standard font and associate it with notebook control 00309 wxFont fontDefault = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT ); 00310 fontDefault.SetPointSize( 8 ); 00311 pBook->SetFont( fontDefault ); 00312 00313 break; 00314 } 00315 00316 return pBook; 00317 }
|
|
Definition at line 263 of file dlgmgr.cpp. 00263 {m_TabType=t;}
|
|
Definition at line 265 of file dlgmgr.cpp. |