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 OBJECT | X | ||
GET OBJECT RECT | X | ||
SET FILTER | X | ||
SET FORMAT | X | ||
SET ENTERABLE | X | ||
SET CHOICE LIST | X | ||
BUTTON TEXT | X | ||
SET COLOR | X | X | |
SET RGB COLORS | X | X | |
FONT | X | X | X |
FONT SIZE | X | X | X |
FONT STYLE | X | X | X |
SET ALIGNMENT | X | X | X |
Get alignment | X | X | X |
SET VISIBLE | X | X | X |
SET SCROLLBAR VISIBLE | X | ||
BEST OBJECT SIZE | X | X | X |
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.