Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

QuickWin with dialogs

bbradley
Beginner
928 Views
Is it possible to create an MDIQuickWin application with menu-driven dialogs ?
0 Kudos
7 Replies
Steven_L_Intel1
Employee
928 Views
Yes. Dialogs can be used in any application type.
0 Kudos
bbradley
Beginner
928 Views
I have tried this, but although the dialgog is presented, it does not "work", and the "Esc" key is the only way out. I have submitted the source code to Premier, but no reply as yet.
0 Kudos
Steven_L_Intel1
Employee
928 Views
Well, I'm not sure Premier Support is the best place for that sort of question. This forum would be better.

I've written many QuickWin programs with dialogs. Can you attach a small example that doesn't work for you? You'd need to use a modal dialog. Also, I'm not entirely sure what you mean by a "menu driven dialog" - perhaps Jugoslav or one of the others better versed in Windows programming can comment.
0 Kudos
Jugoslav_Dujic
Valued Contributor II
928 Views
I'd appreciate a more detailed explanation and/or sample source which exhibits the behavior.

If by "menu-driven dialogs" you mean "dialogs which contain menus", it's doable only with a tweak -- take a look at MenuDialog sample.
0 Kudos
bbradley
Beginner
928 Views
Here is a demo of the problem. In the File menu, select "Test change...", and this causes the modal dialog to run. However, none of the interface items in the dialog are active, and the only way out is the "Esc" key.
So, that is what I mean by "menu driven", I.E. pick something from a menu, user responds to the dialog, program takes an approptiate action.
Thanks
0 Kudos
Jugoslav_Dujic
Valued Contributor II
928 Views
Tough debugging :-(. It turned out that you merely have set the property of the dialog Disabled="True", creating a vicious circle -- the dialog is created disabled, and DlgModal disables the parent window as well. So you ended up having all windows disabled.
0 Kudos
bbradley
Beginner
928 Views
Excellent. Thanks
0 Kudos
Reply