[wxPython] wxMDIParentFrame, window-menu and locale language

Hi Robin,

print menubar.GetMenuCount() #--> the result is 1
menubar.SetLabelTop(0, 'Fenster') #0 changes the label of my 'Datei'

Menu, and 1 gets an error

self.SetMenuBar( menubar )

how can I change the wxMenu 'windows' name??

[Robin wrote]
wxMenuBar.SetLabelTop should do it.

I cannot get the right pos (pos: The position of a menu on the menu bar,
starting from zero)
for the wxMDIParentFrame window-menu

0 changes my own menu, and 1 gets an error. The GetMenuCount is -> 1! But
there are two menues?!?

another hint please

Peter
(=PA=)

>
> how can I change the wxMenu 'windows' name??
>

[Robin wrote]
wxMenuBar.SetLabelTop should do it.

I cannot get the right pos (pos: The position of a menu on the menu bar,
starting from zero)
for the wxMDIParentFrame window-menu

0 changes my own menu, and 1 gets an error. The GetMenuCount is -> 1! But
there are two menues?!?

I took a look at the code and I found that the Windows menu for MDI frames
is inserted into the menubar using lower level win32 APIs, not wx. That is
why SetTopLabel can't find it.

Another approach is to not use the default Windows menu, but make and
maintain your own. If you use the wxFRAME_NO_WINDOW_MENU on the MDI frame
then it won't make the windows menu. If you use the same IDs for your menu
then the default event handlers shoudl still work. Unfortuantly those IDs
aren't wrapped in wxPython yet so here they are:

const int IDM_WINDOWTILE = 4001;
const int IDM_WINDOWTILEHOR = 4001;
const int IDM_WINDOWCASCADE = 4002;
const int IDM_WINDOWICONS = 4003;
const int IDM_WINDOWNEXT = 4004;
const int IDM_WINDOWTILEVERT = 4005;

ยทยทยท

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!