(see Masterdemo.lsp for examples)
-----------------------
If Combo Box has Style 7 (Plotstyle), then the first entry from the list is immediately displayed in the list.
Style 8 (Fonts) does not display an entry by default, an entry must be selected.
Bug or Feature?
Peter
The plot style table combo is actually implemented by the host application, and apparently the host application automatically selects the current plot style table name after the combo is created. I guess technically it is working as designed, but I think the control should honor its Text property value that was set at design time. I will see if I can correct this.
The problem is probably deeper (for version 7.0.1.4):
dcl_Control_GetList returns "nil" if it is set to Style 7 (Plotstyle). Here is a log-file where I have defined it
a) for Style 8: Fonts are returned
b) for Style 7: nil is returned (although the plostyletables are displayed in the Combo Box)
Befehl: (dcl_Control_GetList PC3_Font_Check_dialog_LstSystemPlot)
("AcadEref" "acaderef.shx" "aehalf.shx" "AIGDT" ....... "Webdings" "Wingdings")
-> Here I changed the style to 7 and reloaded the dialogue:
Befehl: (dcl_Control_GetList PC3_Font_Check_dialog_LstSystemPlot)
nil
Addendum:
The Plotstylelist behaves in the same way the plotstyle-combobox in print-dialog does: Started from a STB-drawing is shows only STB-files; started from a CTB-drawing it shows only CTB. This can be an unexpected side-effect sometimes.
Hi, Peter,
have you tried to count the combobox items and to return the item text of each ComboBox item (dcl-ComboBox-GetLBText)? I remember I had to used GetItemData in a color-styled combobox in the past but I may fail...
Regards, Fred