Some more drawing things,
Tried to make miniframe stay on top, doesn't work, Make radio box big enough for its title, Can't anylong close disabled toplevel windows, Minor other changes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -51,14 +51,6 @@ wxButton *button = (wxButton*) NULL;
|
||||
// main frame
|
||||
bool MyApp::OnInit()
|
||||
{
|
||||
// Create the mini frame window
|
||||
mini_frame = new MyMiniFrame((wxFrame *) NULL, -1, "wxMiniFrame sample",
|
||||
wxPoint(100, 100), wxSize(220, 100));
|
||||
mini_frame_exists = TRUE;
|
||||
|
||||
mini_frame->CreateToolBar(wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT, ID_TOOLBAR);
|
||||
InitToolbar(mini_frame->GetToolBar());
|
||||
|
||||
// Create the main frame window
|
||||
main_frame = new MyMainFrame((wxFrame *) NULL, -1, "wxFrame sample",
|
||||
wxPoint(100, 100), wxSize(300, 200));
|
||||
@@ -68,6 +60,14 @@ bool MyApp::OnInit()
|
||||
|
||||
button = new wxButton( main_frame, ID_REPARENT, "Press to reparent!" );
|
||||
|
||||
// Create the mini frame window
|
||||
mini_frame = new MyMiniFrame( main_frame, -1, "wxMiniFrame sample",
|
||||
wxPoint(100, 100), wxSize(220, 100));
|
||||
mini_frame_exists = TRUE;
|
||||
|
||||
mini_frame->CreateToolBar(wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT, ID_TOOLBAR);
|
||||
InitToolbar(mini_frame->GetToolBar());
|
||||
|
||||
#ifdef __WXMSW__
|
||||
main_frame->SetIcon(wxIcon("mondrian"));
|
||||
mini_frame->SetIcon(wxIcon("mondrian"));
|
||||
|
Reference in New Issue
Block a user