Now I'd like to draw a line in the slides. What's the best way to do this?

How can I draw a line in the slides?
Started by Maik2, Apr 17 2025 10:19 PM
4 replies to this topic
#1
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?
Now I'd like to draw a line in the slides. What's the best way to do this?
#2
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
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.
--
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
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
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.
--
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