![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
You might recall my question not too long ago about copy-cut-paste with toolbars. I am now looking at using nonmodal forms. I have a couple of problems. 1) Where do I put the clear events command? If I do not have it, my program does not terminate when all forms are closed. Since any form might be the last, what is the best placement? If I am using a menu, then presumably, I put it in the exit selection, but if I am not using a menu, what do I do? I suppose that I can have if _screen.formcount=0 && or 1, I am not sure clear events endif in a suitable event's (.unload()?) code, but it looks kludgy. 2) What is the best way to store the object references (so the forms stay in scope)? A global array? Do you have hardcoded references to array elements, search for a free element, or do something else? |
#3
| |||
| |||
|
|
You might recall my question not too long ago about copy-cut-paste with toolbars. I am now looking at using nonmodal forms. I have a couple of problems. 1) Where do I put the clear events command? If I do not have it, my program does not terminate when all forms are closed. Since any form might be the last, what is the best placement? If I am using a menu, then presumably, I put it in the exit selection, but if I am not using a menu, what do I do? I suppose that I can have if _screen.formcount=0 && or 1, I am not sure clear events endif in a suitable event's (.unload()?) code, but it looks kludgy. |
|
2) What is the best way to store the object references (so the forms stay in scope)? A global array? Do you have hardcoded references to array elements, search for a free element, or do something else? |
![]() |
| Thread Tools | |
| Display Modes | |
| |