Consultor Eletrônico



Kbase P4309: Combo-box - incorrect font display with list-item-pairs
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/28/2003
Status: Verified

FACT(s) (Environment):

Progress 9.1x

SYMPTOM(s):

Combo-box - incorrect font display with list-item-pairs

If a drop-down-list combo-box is defined as integer or decimal and uses list-item-pairs, the font of the items in the combo-box changes to system font, not the specified font.

CAUSE:

No FONT clause is generated by the AppBuilder when a drop-down-list is designed with default font

FIX:

Workaround:
1) open adm2\combo.p
2) in the initializeObject procedure find the "CREATE COMBO-BOX hCombo ..." statement
3) add te "FONT = 2" option to the ASSIGN part of the statement.
4) do not overwrite the original combo.p but follow recommendations for customizing and modifying ADM2)

This is the simplest version where the font number is hardcoded. If combos should have different font, the "SmartDataField Maintenance tool" can be modified, a new property added and it's value can be retrieved in the initializeObject of combo.p and the value can be set to a new combo.