Futurebasic/Language/Reference/def setbuttontextselection

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Syntax[edit | edit source]

DEF SETBUTTONTEXTSELECTION

Revised[edit | edit source]

February, 2002 (Release 6)

Description[edit | edit source]

Use this procedure to set the selection range of an Appearance Manager, control-based edit field. (Such buttons are created using the APPEARANCE BUTTON statement with a type like _kControlEditTextProc.) The minimum value for selStart is zero for the position before the first character. The maximum value for selEnd is 32767 (or _maxInt). To set the selection to the end of the field, use: DEF SETBUTTONTEXTSELECTION(bRefNum&, _maxInt, _maxInt)