[wx-dev] frame-modal dialogs wxUpdateUI handling

Stefan Csomor csomor at advancedconcepts.ch
Sun Sep 3 01:45:06 PDT 2006


Hi 

> SC> when using a frame-modal dialog on a window, no menu 
> commands that 
> SC> would be handled by this frame should remain enabled 
> (apart from the 
> SC> edit menu), only menus handled by a higher level frame eg the 
> SC> application level frame.
> SC> 
> SC> which is the most elegant way to achieve this ?
> 
>  I don't see how can we achieve this at all so why not 
> disable the menu bar when this frame is active entirely but 
> enable it if another frame is activated? This is not ideal 
> but very simple and should work not too badly, shouldn't it?

it is a brute force approach, but one that would at least not show
incorrectly enabled menus, so it is better than leaving the all on and
dying in recursive madness. 

But at least in an MDI situation, we would know which frame is
responsible for the 'app' level commands, so there we perhaps could find
a situation that eg at least leaves things like the Open.. command etc
active.

thanks,

Stefan




More information about the wx-dev mailing list