Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 25 Apr 2024, 19:25

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: color does not change
PostPosted: 30 Jun 2023, 08:24 
Offline

Joined: 25 Oct 2021, 10:49
Posts: 18
I have Delphi 10.4.2
I have applied VCL styles
I want to change the background color of TDBNumberEditEh when the value is wrong, but it doesn't change.

Code:
if True then
      begin
         edUD.Color:= clYellow;
         Self.Repaint;
      end
      else
      begin
         edUD.Color:= clWindow;
         Self.Repaint;
      end;


Top
 Profile  
 
PostPosted: 01 Jul 2023, 15:21 
Offline

Joined: 08 May 2014, 18:06
Posts: 663
Hello

Try removing the seClient value from the TDBNumberEditEh.StyleElements property.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 02 Jul 2023, 10:31 
Offline

Joined: 25 Oct 2021, 10:49
Posts: 18
Now it works, thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group