Modal Frame or Menu in Dialog

Hello,

  For the application I want to implement I'd like to have a
connection screen when the program starts. The basic solution I tried
first was to create a Dialog Box with a set of TextCtrl and Button.
But when I started added functionality to this dialog box, it seems
natural to add a menu to simplify the ergonomy of the window. I did
not find how to add a menu bar to a Dialog instance. Is this
possible ?

  I also tried to use a Frame for which I can add a menu but I didn't
manage to make it modal. The ShowModal method does not exist for the
Frame class.

Does somebody know how to implement either :
  - Adding a menu to a Dialog Box
  - Making a modal Frame.

Thanks

Hi,

···

On Aug 25, 10:34 am, Kaldrill <jerome.fusel...@gmail.com> wrote:

Hello,

For the application I want to implement I'd like to have a
connection screen when the program starts. The basic solution I tried
first was to create a Dialog Box with a set of TextCtrl and Button.
But when I started added functionality to this dialog box, it seems
natural to add a menu to simplify the ergonomy of the window. I did
not find how to add a menu bar to a Dialog instance. Is this
possible ?

I also tried to use a Frame for which I can add a menu but I didn't
manage to make it modal. The ShowModal method does not exist for the
Frame class.

Does somebody know how to implement either :
- Adding a menu to a Dialog Box
- Making a modal Frame.

Thanks

I don't think you can put a normal menu bar on a dialog, but I could
be mistaken. The answer to the second question is the MakeModal()
method.

- Mike