TXSELECT Mnemonic - Perform Custom Edit Control Text Selection

Syntax

'TXSELECT'(id,par1,off1,par2,off2)

Description

The 'TXSELECT' mnemonic sets the current text selection in a custom edit control. The par1 and off1 parameters specify the location of the beginning of the current selection. The par2 and off2 parameters indicate the end. If there is to be no selection, setting par1 equal to par2 and off1 equal to off2 results in the caret (insertion point) being set at that position. Paragraph numbers are zero based. Offsets represent byte offsets, relative to the start of a paragraph and are also zero based.

Parameter

Description

id

Control ID number. It must be an integer between 1 and 32767 and be unique within a given top-level window.

par1

The location of the beginning of the current selection.

off1

The location of the beginning of the current selection.

par2

End of the current selection.

off2

End of the current selection.

See Also

Mnemonics - Alphabetical Listing

Mnemonics - Group Listing