Jump to content


Photo

Coloring the NxDBProgressColumn depending on the corresponding column value


  • Please log in to reply
3 replies to this topic

#1 Maik2

Maik2
  • Members
  • 9 posts

Posted 05 April 2025 - 09:32 PM

Hello,

 

I have two questions again.
 
1. How can I color the NxDBProgressColumn based on the corresponding column value?
 
2. When I try to set the text to tpInside using the TextPosition property, it is still displayed to the left of the progress bar. Is it even possible to display it as shown in the attached screenshots?
 
Thanks and regards, Maik

 

 

Attached Files



#2 Maik2

Maik2
  • Members
  • 9 posts

Posted 06 April 2025 - 12:46 PM

 

Hello,

 

I have two questions again.
 
1. How can I color the NxDBProgressColumn based on the corresponding column value?
 
2. When I try to set the text to tpInside using the TextPosition property, it is still displayed to the left of the progress bar. Is it even possible to display it as shown in the attached screenshots?
 
Thanks and regards, Maik

 

 

 

I've solved point 1.
procedure TForm.NxDBProgressColumn6GetValue(Sender: TObject; ACol, ARow: Integer; var Value: Double);
begin
  NxDBProgressColumn6.ProgressColor := RGB(200, 230, 201); // lightgreen
  if Value < 100 then NxDBProgressColumn6.ProgressColor := RGB(255, 205, 210); // lightred
  if Value < 50 then NxDBProgressColumn6.ProgressColor := RGB(187, 222, 251); // lightblue
end;
 
Attached File  NxDBProgressColumn_MyColors.png   11.92KB   0 downloads    
 
 
There's still the question of text positioning, for which I haven't found a solution yet......


#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,242 posts
  • Gender:Male

Posted 18 April 2025 - 06:21 PM

Hello,

 

Please sorry for the delay,

 

There is TextPosition property that I'm working on it. I hope that it will be ready for the next release.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#4 Maik2

Maik2
  • Members
  • 9 posts

Posted 20 April 2025 - 12:08 AM

Thanks Boki,
 
I'm looking forward to the new version with its many more great features.
 
Happy Easter and greetings, Maik





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users