I want the edges of the grid are rounded. It's possible?
Thank.
Posted 13 June 2016 - 11:59 PM
I want the edges of the grid are rounded. It's possible?
Thank.
Posted 14 June 2016 - 01:09 PM
Posted 15 June 2016 - 11:20 AM
Tip?
You can create Rounded corners with this procedure.
Call: RoundCornerOf(NextGrid);
procedure RoundCornerOf(Control: TWinControl); var R: TRect; Rgn: HRGN; begin with Control do begin R := ClientRect; rgn := CreateRoundRectRgn(R.Left, R.Top, R.Right, R.Bottom, 20, 20) ; Perform(EM_GETRECT, 0, lParam(@r)) ; InflateRect(r, - 4, - 4) ; Perform(EM_SETRECTNP, 0, lParam(@r)) ; SetWindowRgn(Handle, rgn, True) ; Invalidate; end; end;
0 members, 0 guests, 0 anonymous users