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.

Read-Only

 

Buttons, check boxes and various other widgets can be made read-only or read and writeable.

 

Read-only mode does not allow the user to change anything about the widget, whilst read and writeable will allow the user to change, select or edit the widget.

 

Read-only can be enabled or disabled by using DDgui_set with the “READONLY” parameter. 

 

An example for this would be :

 

DDgui_button("t1","moo",100,50)

DDgui_button("t2","moo",100,50)

DDgui_set("t1","READONLY",TRUE)

 

Which makes the “t1” button read-only, which means that if the user moves the mouse over or presses the first button, nothing will happen.

 

A widget's colour wont change if the mouse is moved over a READ-ONLY widget.

 

To disable read-only mode, the “READONLY” parameter should be set to FALSE :

 

DDgui_set("t1","READONLY",FALSE)

 

Find Your Next Great Read

Describe what you're looking for in as much detail as you'd like.
Our AI reads your request and finds the best matching books for you.

Showing results for ""

Popular searches:

Romance Mystery & Thriller Self-Help Sci-Fi Business