KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Managing properties for the different parts of List Boxes
PRODUCT: 4D | VERSION: 11.6 | PLATFORM: Mac & Win
Published On: July 16, 2010

When programatically setting the properties for a List Box it is very important to use the Object Properties commands on one of the three List Box object properties it is intended for.

The chart, shown below, found in the "Object, column and header" section of Managing List Box Objects specifies the List Box objects that Object Properties commands are intended to be used with.

Object Properties commands   Object   Columns   Column headers
MOVE OBJECTX
GET OBJECT RECTX
SET FILTERX
SET FORMATX
SET ENTERABLEX
SET CHOICE LISTX
BUTTON TEXTX
SET COLORXX
SET RGB COLORSXX
FONTXXX
FONT SIZEXXX
FONT STYLEXXX
SET ALIGNMENTXXX
Get alignmentXXX
SET VISIBLEXXX
SET SCROLLBAR VISIBLEX
BEST OBJECT SIZEXXX


Wrongly using an Object Property command on a List box object, such as using SET ENTERABLE with the List Box Object reference instead of a Columns object (array or field) can result in undesired side-effects. It is important to stay vigilant and use the Object properties commands only with the appropriate List Box objects.