DDgui Programmers Reference Guide by Nicholas J. Kingsley - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Focusing

 

New in GLBasic 9.054 is the ability to move backwards or forwards through either a text or single text widget.  This is done by using :

 

DDgui_advancefocus([direction% = -1])

 

This moves the cursor to either the next text or single text widget (direction% > 0) or the previous widget (direction% < 0)

 

Ddgui_setfocus(id$)

 

This moves the cursor to the widget defined by id$.  Again, this only works with text or single text widgets.