Do you use the latest version of the component?
I have retested this here with the TAdvDBLookupComboBox demo here, where I changed the AdvDBLookupComboBox1.LabelFont.Color to clRed and added a button to toggle the enabled state of
AdvDBLookupComboBox1 and this toggles between red & gray label font color.
ver. 1.9.6.3
As stated, I cannot reproduce this with our demo.
If a problem persists, please provide a sample source project & detailed steps with which the problem can be reproduced.
Insert TAdvDBLookupComboBox on the form, set Enabled = False and run the application. Then, if the Enabled status changes, it's OK.
This information was necessary to be able to reproduce it.
We have fixed the issue now.
DataSource1.Enabled := oAddress.CustomDB.GetRecord; // False
DataSource1.Enabled := oAddress.CustomDB.GetRecord; // TRUE
AdvDBLookupComboBox1.Enabled := False;
AdvDBLookupComboBox1.Enabled := True;
Do you use TMS VCL UI Pack v10.1.7.0?
Component ver. 1.9.6.4
Just clarify that the originally reported error is fixed.
It is hard for me to understand from this description what is wrong or what you need.
I understand that you enable/disable the datasource. When this is the case, this enables/disables the TAdvDBLookupComboBox. When the TAdvDBLookupComboBox is disabled, it will by default show as grayed as well as its label text when used.
When you do not want that the label text is displayed disabled (grayed) when the control is disabled, set : AdvDBLookupComboBox.LabelAlwaysEnabled = true
I'm sorry but also with this information I cannot see a problem.
You say that DataSource.Enabled = false. As long as DataSource.Enabled = false, the label will remain grayed, irrespective of the operations you do on the dataset.
Managed to. I sent it in support.
With the help of
Kind regards,
Bruno Fierens