wxAui with mdi doc/view framework problem Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
scott_wen
Earned a small fee
Earned a small fee
Posts: 19
Joined: Fri Feb 02, 2007 9:51 am

wxAui with mdi doc/view framework problem

Post by scott_wen » Sat Feb 03, 2007 12:18 pm

hi all:
I want to create a applicatioin with aui ,MDI doc/view. before, I create two panel within wxDocParentFrame with wxAuiManaget, and then create a wxDocChildFrame , it run fine. when I add toolbar to the wxDocChildFrame , toolbar and wxDocChildFrame don't update normal sometimes. I can't find what is problem, :cry:
I f anyone has any hints, I would be very grateful . thanks!
life is short,play more

scott_wen
Earned a small fee
Earned a small fee
Posts: 19
Joined: Fri Feb 02, 2007 9:51 am

Post by scott_wen » Tue Feb 06, 2007 1:58 am

hi all:
I've solved it. :D [/img]
life is short,play more

Jindrich.Novak
Knows some wx things
Knows some wx things
Posts: 37
Joined: Wed Feb 09, 2005 7:31 am
Location: Liberec, Czech Republic

Post by Jindrich.Novak » Wed May 02, 2007 7:34 pm

scott_wen wrote:hi all:
I've solved it. :D [/img]
can you send your solution ?

theigor
Experienced Solver
Experienced Solver
Posts: 78
Joined: Thu Jan 12, 2006 6:51 pm

Post by theigor » Thu May 03, 2007 12:03 am

scott_wen wrote:hi all:
I've solved it. :D
you should, then, write it down so that other people can see too

Jindrich.Novak
Knows some wx things
Knows some wx things
Posts: 37
Joined: Wed Feb 09, 2005 7:31 am
Location: Liberec, Czech Republic

docview with wxAuiManager

Post by Jindrich.Novak » Thu May 03, 2007 11:13 am

i tryied it with sample/docview
in steps:

1) add wx???_aui.lib to the project
2) to
DocFrame::DocFrame:wxDocParentFrame insert auiManager.SetManagedWindow(this);
3) add more then 1 aui element like

Code: Select all

auiManager.AddPane(new someControl(...), wxAuiPaneInfo().Left() );
4) to method

Code: Select all

Canvas* DocFrame::CreateCanvas  add 
auiManager.AddPane(canvas, wxAuiPaneInfpo().Top(). .... )
auiManager.Update();
5) if you used canvas pane with close button, connect close pane event to close document event

6) Dont use wxDisableAllWindow

Sickboy
Experienced Solver
Experienced Solver
Posts: 91
Joined: Wed Mar 16, 2005 10:30 pm
Location: Germany

Post by Sickboy » Fri May 04, 2007 8:55 pm

I don't understand russian. But this was quite helpfull for me.
http://wxwidgets.info/?q=wxaui_tutorial_2_ru

zhvickie
Experienced Solver
Experienced Solver
Posts: 56
Joined: Fri Apr 06, 2007 1:17 pm

Post by zhvickie » Sat May 05, 2007 3:36 am

sickboy, Thank u.

Post Reply