Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Menus on dialogs?

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Menus on dialogs?
#2857
Posted by: 2003-11-06 00:16:04
Hi,

how can i set a menu on a dialog?

Ive tried SetMenuBar but that isnt a member of wxDialog. Any idea how i can do it?

Thanks
Message2. Re: Menus on dialogs?
#2858
Posted by: upCASE 2003-11-06 00:56:10
Hi!
Simple answer: You can't!
At least this is what I've read/been told. If you need a menu, do with wxFrame. Frames are "supposed" to have stuff like menus and statusbars, while dialogs are just simple windows with no extras.
Maybe consider using a wxFrame, add a panel with the layout you're using for your dialog, add a menu and disable the maximize and minimize buttons.

upcase
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Mon 2024-10-7  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0