unNotebookPage* unPackageTree::Initialize( pkgSerializer* serializer )
{
	Serializer = serializer;

	InitDisplayModes();

	// controls
	ModeCombo = new wxComboBox( this, wxID_ANY, ModeNames[0], wxDefaultPosition, wxDefaultSize, ModeNames, wxCB_READONLY );
	Tree = new unTreeList(this);

	// sizer
	wxBoxSizer* vs = new wxBoxSizer( wxVERTICAL );
	vs->Add( ModeCombo, 0, wxEXPAND | wxALIGN_TOP, 0 );	
	vs->Add( Tree, 1, wxEXPAND, 0 );	
	vs->SetSizeHints( this );
	SetSizerAndFit( vs ); 

	// init
	InitListTable( GetTable() );
	InitTreeList();

	SetDisplayMode( 0 );

	return this;
}
Exemple #2
0
//--------------------------------------------------------------------------
void VeWindows::_Init()
{
	InitDisplayModes();
}