Jump to content


Photo

How can I draw a line in the slides?


  • Please log in to reply
4 replies to this topic

#1 Maik2

Maik2
  • Members
  • 9 posts

Posted 17 April 2025 - 10:19 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?

Attached Files



#2 Maik2

Maik2
  • Members
  • 9 posts

Posted 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;


#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 18 April 2025 - 05:17 PM

Hi,

 

Yes, this can be the solution, but I'm also thinking about adding custom drawing per slide. Probably for the next update.


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


#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 21 April 2025 - 08:19 PM

Hi,

 

It is added and new release will be on 24th of April. NxSlidesView will now include OnCustomDraw event.


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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users