F
Fred Boer
Hello!
Recently, I have been busily fiddling with some of the forms in my little
library application. I decided it would be useful to be able to call the
same form from more than one other form (i.e. call "FormA" from either
"Form1" or "Form2"). However, this has brought up a problem in how to manage
the "flow" of forms and opening, closing, minimizing, etc.
Problems crept in because a user could (possibly...) open a number of forms,
minimize the last form opened, close the preceding forms, and then, close
the open form. This would cause the application to break. (i.e. open
"Form1"; then from "Form1" open "Form2"; then from "Form2" open "Form3";
then minimize "Form3"; then close "Form1" and "Form2"; then maximize
"Form3"; and then close "Form3", leaving the user in the empty database
window...)
Now, I know that I could, if I wished, tightly lock down my forms,
preventing the use of the minimize, maximize, and close buttons, and forcing
users to use my own "custom" close buttons. I could, therefore, be in
complete control of the flow of forms in the application. I even did it this
way once, but, in the end I decided that I would prefer that the forms
behave the way users would expect the UI to work.
My latest attempt involved making almost all of the forms modal. This seemed
to work, and I was happy. (Well, reasonably happy, at least..... stress
about the Toronto Maple Leafs in the Stanley Cup playoffs is preventing me
from achieving true happiness at this time, but I digress...<g>) This
morning, I tried to break it, and I did (sigh)...
If I opened a chain of modal forms, and then minimized the active form, I
found that I was trapped... The active form was minimized and then hidden by
the "frozen" form previously opened... I couldn't move or minimize the
"frozen" form to "get at" the active, but minimized form. So now I'm back
looking at how to disable the minimize button...(which I don't want to
do...)
I would love some suggestions about how to manage the flow of forms. Am I on
the right track using modal forms, but have just screwed up somehow? Is
there a reference somewhere that can help with this kind of design problem?
I would love to hear suggestions about how to manage forms, while still
maintaining the standard Windows UI for my forms...
Thanks for reading this rather involved post!
Fred Boer
Recently, I have been busily fiddling with some of the forms in my little
library application. I decided it would be useful to be able to call the
same form from more than one other form (i.e. call "FormA" from either
"Form1" or "Form2"). However, this has brought up a problem in how to manage
the "flow" of forms and opening, closing, minimizing, etc.
Problems crept in because a user could (possibly...) open a number of forms,
minimize the last form opened, close the preceding forms, and then, close
the open form. This would cause the application to break. (i.e. open
"Form1"; then from "Form1" open "Form2"; then from "Form2" open "Form3";
then minimize "Form3"; then close "Form1" and "Form2"; then maximize
"Form3"; and then close "Form3", leaving the user in the empty database
window...)
Now, I know that I could, if I wished, tightly lock down my forms,
preventing the use of the minimize, maximize, and close buttons, and forcing
users to use my own "custom" close buttons. I could, therefore, be in
complete control of the flow of forms in the application. I even did it this
way once, but, in the end I decided that I would prefer that the forms
behave the way users would expect the UI to work.
My latest attempt involved making almost all of the forms modal. This seemed
to work, and I was happy. (Well, reasonably happy, at least..... stress
about the Toronto Maple Leafs in the Stanley Cup playoffs is preventing me
from achieving true happiness at this time, but I digress...<g>) This
morning, I tried to break it, and I did (sigh)...
If I opened a chain of modal forms, and then minimized the active form, I
found that I was trapped... The active form was minimized and then hidden by
the "frozen" form previously opened... I couldn't move or minimize the
"frozen" form to "get at" the active, but minimized form. So now I'm back
looking at how to disable the minimize button...(which I don't want to
do...)
I would love some suggestions about how to manage the flow of forms. Am I on
the right track using modal forms, but have just screwed up somehow? Is
there a reference somewhere that can help with this kind of design problem?
I would love to hear suggestions about how to manage forms, while still
maintaining the standard Windows UI for my forms...
Thanks for reading this rather involved post!
Fred Boer