LISTSELSIZE Mnemonic - Change Size

Syntax

'LISTSELSIZE' (id,height{,width})

Description

The 'LISTSELSIZE' mnemonic changes the height of the edit field at the top of list button and list edit controls, and optionally changes the width of these types of controls.

Parameter

Description

id

Control ID of the list button or list edit control. It must be an integer between 1 and 32767.

height

Height of the edit field.

width

Width of the control.

When these controls are created, either with mnemonics or in ResBuilder, the specified height controls the total height of the control when the list is dropped down, including the field at the top, which is always visible. The height of the top field is defined according to the control's font and is normally not changed. This mnemonic can be used to override the default height of the edit field but does not affect the height of the list box that drops down.

Use the 'SIZE' mnemonic to change the dimensions of any control. 'SIZE' does not affect the height of the edit field in list button and list edit controls.

Example

The following creates a list edit control with a large edit field:

open (1)"X0"
print (1)'pixels'
print (1)'window'(0,0,300,200,"","")
print (1)'listedit'(100,10,10,200,100,"","")
print (1)'listselsize'(100,30)
escape

List of mnemonic groupings