simulating_20a_20modal_20dialogue_20box
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
simulating_20a_20modal_20dialogue_20box [2018/03/31 13:19] – external edit 127.0.0.1 | simulating_20a_20modal_20dialogue_20box [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Simulating a modal dialogue box===== | =====Simulating a modal dialogue box===== | ||
- | //by Richard Russell, October 2006//\\ \\ Dialogue boxes created using the functions in the [[http:// | + | //by Richard Russell, October 2006//\\ \\ Dialogue boxes created using the functions in the [[http:// |
+ | |||
+ | <code bb4w> | ||
PROC_showdialog(dlg%) | PROC_showdialog(dlg%) | ||
SYS " | SYS " | ||
- | Second, explicitly enable your main window immediately before the call to **PROC_closedialog**: | + | </ |
+ | |||
+ | Second, explicitly enable your main window immediately before the call to **PROC_closedialog**: | ||
+ | |||
+ | <code bb4w> | ||
SYS " | SYS " | ||
PROC_closedialog(dlg%) | PROC_closedialog(dlg%) | ||
- | If necessary replace **dlg%** with the appropriate value returned from **FN_newdialog**.\\ \\ It is also wise to re-enable your window on exit or in the event of an error:\\ \\ | + | </ |
+ | |||
+ | If necessary replace **dlg%** with the appropriate value returned from **FN_newdialog**.\\ \\ It is also wise to re-enable your window on exit or in the event of an error: | ||
+ | |||
+ | <code bb4w> | ||
ON CLOSE SYS " | ON CLOSE SYS " | ||
ON ERROR SYS " | ON ERROR SYS " | ||
- | Generally this is all you will need to do. If you have other open dialogue boxes, and you wish to disable them, you can do so using the same technique, remembering that the dialogue box handle is stored in memory at the address returned from **FN_newdialog**: | + | </ |
+ | |||
+ | Generally this is all you will need to do. If you have other open dialogue boxes, and you wish to disable them, you can do so using the same technique, remembering that the dialogue box handle is stored in memory at the address returned from **FN_newdialog**: | ||
+ | |||
+ | <code bb4w> | ||
PROC_showdialog(dlg%) | PROC_showdialog(dlg%) | ||
SYS " | SYS " | ||
Line 18: | Line 32: | ||
SYS " | SYS " | ||
PROC_closedialog(dlg%) | PROC_closedialog(dlg%) | ||
+ | </ |
simulating_20a_20modal_20dialogue_20box.1522502382.txt.gz · Last modified: 2024/01/05 00:16 (external edit)