LISTBUTTON Mnemonic - Create a List Button Control

Syntax

'LISTBUTTON'(id,x,y,w,h,title,flags)

Description

For BBj-specific information, see LISTBUTTON Mnemonic - Create a List Button Control BBj.

The 'LISTBUTTON' mnemonic creates a list button control that allows the user to select an item from a list. The list of choices available may be modified only under program control. The values in the list may be accessed using a zero-based list index integer. Unlike the list edit control, it does not allow a value to be entered manually. As the user types, the first matching selection in the list is placed in the edit area. Various keys may be used to navigate in the list including the Home (first selection), End (last selection), Page Up and Page Down, and the arrow keys.

For information about changing the height of the edit field at the top of list button and list edit controls, see the 'LISTSELSIZE' mnemonic.

Parameter

Description

id

Control ID number. It must be an integer between 1 and 32767 and be unique within a given top-level window.

x

Horizontal position of the upper-left corner of the control in current units.

y

Vertical position of the upper-left corner of the control in current units.

w

Width of the control in current units.

h

Height of the control in current units.

title

Title of the control.

flags

Control flags, as follows:

 

Flag Description

 

$0001$ Sets the control to be initially disabled.

 

$0010$ Sets the control to be initially invisible.

 

$0800$ Draws a recessed client edge around the control.

 

$1000$ Draws a raised edge around the control.

See Also

Mnemonics - Alphabetical Listing

Mnemonics - Group Listing



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.