fgl_key_queue()

fgl_key_queue() pushes the keyvalue specified as its argument into a key queue.

If the key queue exists, then the key at the top of the queue is automatically returned on a call to fgl_getkey().

The argument for this function is an INTEGER which represents the key value:

MAIN

  DEFINE my_key int

 

  #Push the key 'a' into the queue

  CALL fgl_key_queue(50)

 

  CALL fgl_getkey()

 

  #retrieve the value of the last key buffer

  LET my_key = fgl_lastkey()

 

  #Display the key value

  DISPLAY "You pressed the key: ", my_key at 5,5

 

  CALL fgl_winmessage("Exit","Press any key to close this demo application","info")

END MAIN

 

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.