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.

List Box

 

A list box allows the user to select text from a static, multiple line text box.

 

A list box is created by :

 

DDgui_list(id$, text$ [,width%, height%])

 

with id$ being a unique identifier, and text$ is the text to be displayed.  The text contains all the options to be displayed, with each separated by “|”

 

width% and height% are optional.  If these are given, the the widget will be created with the horizontal size defined by width% and the vertical size by height%.

 

If these values aren't given, the the widget with take the horizontal size of the text length and the font height.

 

By default the first line will be checked.  This can be changed using DDgui_set

 

Which line is selected can be detected using DDgui_get

 

A list box looks like :

 

img15.png

The vertical size of  each line is controlled by the gDDguiMinControlDimension% global variable.