fgl_dialog_getcursor()

The fgl_dialog_getcursor() function returns the position of the cursor, in the currently prompted field.

This function can be used with a dedicated get cursor button or key; in this code sample the F4 keyboard key is used.  After typing the first few unique characters of the cursor name into the field of the dialog box, press the F4 key; the function will return the current position of the cursor to the message line.

MAIN

DEFINE text CHAR(512),

x int

OPEN WINDOW w1 WITH FORM "fgl_dialog_getcursor_function"

INPUT BY NAME text

  ON KEY (F4)

  LET x =  fgl_dialog_getcursor()

  MESSAGE "Pos:", x

END INPUT

CLOSE WINDOW w1

END MAIN

example form code

DATABASE FORMONLY

SCREEN

{

[f1                  ]

}

ATTRIBUTES

f1=FORMONLY.text;

INSTRUCTIONS

SCREEN RECORD s_rec (

      FORMONLY.text

      )

DELIMITERS "[]"

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.