setting_20the_20focus_20in_20a_20dialogue_20box
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
setting_20the_20focus_20in_20a_20dialogue_20box [2018/03/31 13:19] – external edit 127.0.0.1 | setting_20the_20focus_20in_20a_20dialogue_20box [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Setting the focus in a dialogue box===== | =====Setting the focus in a dialogue box===== | ||
- | //by Richard Russell, May 2010//\\ \\ If you want to initialise a dialogue box so that the input **focus** is on a particular control, simply make that control the first in the template (i.e. the first to be created after calling [[http:// | + | //by Richard Russell, May 2010//\\ \\ If you want to initialise a dialogue box so that the input **focus** is on a particular control, simply make that control the first in the template (i.e. the first to be created after calling [[http:// |
+ | |||
+ | <code bb4w> | ||
WM_NEXTDLGCTL = 40 | WM_NEXTDLGCTL = 40 | ||
SYS " | SYS " | ||
SYS " | SYS " | ||
+ | </ | ||
+ | |||
where **dlg%** is the value returned from **FN_newdialog** and **id%** is the ID of the control that you want to receive the input focus. | where **dlg%** is the value returned from **FN_newdialog** and **id%** is the ID of the control that you want to receive the input focus. |
setting_20the_20focus_20in_20a_20dialogue_20box.1522502381.txt.gz · Last modified: 2024/01/05 00:16 (external edit)