60002059 Ability to change the font color in vdLayerCombo

Article 60002059
Type Wish
Product Engine
Version 6027
Date Added 10/16/2013 12:00:00 AM
Fixed (11/11/2013 12:00:00 AM)
Submitted by Levi de azevedo


Ability to change the font color in vdLayers combobox


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:


The overlay color of the active Layer when the combobox is deployed.


The text color of the Frozen and off layers when the combobox is deployed.


The color of the combobox's background.


The color of the combobox's text.

Font LayerFont

The 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

Send comments on this topic.