| Article | 60002059 |
| Type | Wish |
| Product | Engine |
| Date Added | 10/16/2013 12:00:00 AM |
| Fixed | (11/11/2013 12:00:00 AM) |
| Submitted by | Levi de azevedo |
Summary
Ability to change the font color in vdLayers combobox
Solution
In version 6028 four new properties were added. Using those the appearance of the vdLayers combobox can be modified to the users liking. These properties are: SelectedLayerColor
The overlay color of the active Layer when the combobox is deployed.
FrozenLayerTextColorThe text color of the Frozen and off layers when the combobox is deployed.
BackgroundColorThe color of the combobox's background.
TextColorThe color of the combobox's text.
Font LayerFontThe font used to display the name of the layer
C# code mLayersComboBox.FrozenLayerTextColor = Color.LightGray; mLayersComboBox.SelectedLayerColor = Color.Blue; mLayersComboBox.TextColor = Color.Red; mLayersComboBox.BackgroundColor = Color.LightGreen; mLayersComboBox.LayerFont = new Font("Verdana", 9f, FontStyle.Italic); VB6 code Dim vdLayers As VectorDraw_Professional.vdLayersCombo Set vdLayers = vdLayersCombo1 'The control at the form Set vdLayers.LayersDocument = VDraw1.ActiveDocument.WrapperObject vdLayers.BackgroundColor = vbBlack vdLayers.TextColor = vbCyan vdLayers.SetLayerFont "Arial", 9, 2