Jump to content

RunTime Control Color


joriolm

Recommended Posts

Hi everybody....

 

I'm trying to change a UniRadioButton's color in runtime, but I got something like attached image.

 

I am assigning it with:

 

UniRadioButton.Color := $E7D8CC;

 

I have tested with ParentColor := False and True but nothing.

 

I'm using 0.95 version, Delphi 2006. Previous version color was ok.

 

 

Additionally, I have a UniDBNavigator disabled, then in runtime I try to Enable it, but it doesn't change.

 

Some ideas? please, thanks.

post-242-0-29072300-1403740798_thumb.png

Link to comment
Share on other sites

1. UniRadioButton1.Font.Color := $E7D8CC

 

2. I think there is a bug when using the "UniDBNavigator1.Enabled: = ..." 

 
Use it: 
 
disabled
UniSession.AddJS(UniDBNavigator1.JSName + '.setDisabled(true)');

enabled

UniSession.AddJS(UniDBNavigator1.JSName + '.setDisabled(false)');
Sincerely.
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...