Jump to content


Maik2

Member Since 21 Mar 2025
Offline Last Active May 03 2025 08:33 PM
-----

Posts I've Made

In Topic: How can I draw a line in the slides?

20 April 2025 - 12:12 AM

Thanks Boki,
 
Yes, that's working for me for now.
However, it would be more practical to be able to create custom drawings per slide rather than just at the cell level.
 
Happy Easter and greetings, Maik

In Topic: Coloring the NxDBProgressColumn depending on the corresponding column value

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

In Topic: How can I draw a line in the slides?

18 April 2025 - 12:57 PM

 

Hello Friends,
 
I'm running another NxDBGrid6 in the NxSlidesGridView.
Now I'd like to draw a line in the slides. What's the best way to do this?

 

 

 

I found the solution.

 

Show the demo at:  'C:\...\NextSuite 6\Demos\Next Grid\Delphi XE6\Cell Background custom drawing'

 

Thanks.

procedure TFormTagelohnauftraege.NxDBTextColumn63DrawBackground(Sender: TObject; ACol, ARow: Integer; CellRect: TRect; State: TNxCellPaintingState);
begin
  with NextDBGrid61.Canvas do
  begin
   Brush.Style := bsClear;
   Pen.Color := clBlack;
   MoveTo(CellRect.Left, CellRect.Top + 4);
   LineTo(NextDBGrid61.ClientWidth-10, CellRect.Top + 4);
  end;
end;

In Topic: Coloring the NxDBProgressColumn depending on the corresponding column value

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......

In Topic: Umstellung meiner Programme von Version 5 zu Version 6

04 April 2025 - 08:14 PM

Hi Maik,

 

Unfortunately I was not able to understand the question about reseting sorting. For dynamical sorting, no reseting is required.

 

Hello Boki,
 
Sorry for not getting back to you sooner, but I've been away for a few days on business.
I'll try to explain my problem a little differently.
 
When I click on the header of a column to sort by that column, a small arrow appears, indicating the sorting direction
and the grid is sorted by that column as desired.
How can I make this arrow in the header disappear again to display the original database sorting in DBGrid V6?
 
For example, if I click on the header of the first four columns, as I solved it in version 5, since only NxDBIconColumns are displayed in those.
 
Thanks in advance and best regards, Maik