setting_20an_20edit_20box_20cue_20banner
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
setting_20an_20edit_20box_20cue_20banner [2018/03/31 13:19] – external edit 127.0.0.1 | setting_20an_20edit_20box_20cue_20banner [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
//by Richard Russell, March 2009//\\ \\ Windows Vista and later have the capability of displaying a **cue banner** in an edit control; this is a line of ' | //by Richard Russell, March 2009//\\ \\ Windows Vista and later have the capability of displaying a **cue banner** in an edit control; this is a line of ' | ||
+ | <code bb4w> | ||
DEF PROCdlgsetcuebanner(hdlg%, | DEF PROCdlgsetcuebanner(hdlg%, | ||
LOCAL wc% : DIM wc% LOCAL 2*LEN(cue$)+2 : wc% = wc% + 1 AND -2 | LOCAL wc% : DIM wc% LOCAL 2*LEN(cue$)+2 : wc% = wc% + 1 AND -2 | ||
Line 15: | Line 16: | ||
SYS " | SYS " | ||
ENDPROC | ENDPROC | ||
+ | </ | ||
Simply call the appropriate procedure once your edit control has been created. For example to provide this facility in the DLGDEMO example program add the following code **after** the call to PROC_showdialog(), | Simply call the appropriate procedure once your edit control has been created. For example to provide this facility in the DLGDEMO example program add the following code **after** the call to PROC_showdialog(), | ||
+ | <code bb4w> | ||
PROCdlgsetcuebanner(!dlg%, | PROCdlgsetcuebanner(!dlg%, | ||
+ | </ | ||
There are a number of conditions which must be met for a cue banner to be used: | There are a number of conditions which must be met for a cue banner to be used: | ||
setting_20an_20edit_20box_20cue_20banner.1522502381.txt.gz · Last modified: 2024/01/05 00:16 (external edit)