GetSys

GetApplyKey

Apply a key to the Get that has input focus, as READ does

Syntax

Signature
xBool GetApplyKey( Get *get, int key, Get *getList[], int count, TopBarMenu *menu, int msgRow, int msgLeft, int msgRight, const char *msgColor );

Arguments

get the Get with input focus.

key an Inkey() code.

getList, count the Gets of the READ.

menu the top bar menu of the READ, or NULL for none.

msgRow, msgLeft, msgRight, msgColor the message row; see ReadModal().

Return value

T, or F if the object is NULL.

Description

Up, Shift+Tab, Down, Tab and Enter move to another Get; PgUp, PgDn and Ctrl+W end the READ and save; Esc ends it without saving when Set( _SET_ESCAPE ) is on; Ctrl+Home goes to the first Get. Alt with the accelerator letter of a caption goes to that Get, and the left mouse button places the cursor or goes to the Get clicked. The keys of editing call GetLeft(), GetBackspace() and the other methods; Ins toggles Set( _SET_INSERT ); Ctrl+U calls GetUndo(). Any other character is typed with GetInsert() or GetOverStrike(). The keys of movement set exitState and leave the decision to ReadModal().

With a `menu`, Alt with the accelerator letter of a top bar item, or a click on an item, runs MenuModal() from that item with the Gets of the READ: a click on a Get or the accelerator letter of a Get ends the menu and goes to that Get. A shortcut key of the menu runs its item. An accelerator letter of a Get comes before the one of the menu.

See also