0

I'm trying to write an equivalent of FMX UI to replace the VCL.

What's the equivalent of DrawEdge in FMX cross-platform for these functions? (or nearest equivalent, if it cannot be the same)

var lRect: TRect;

DrawEdge(FBitmap.Canvas.Handle, lRect, EDGE_BUMP, BF_RECT or BF_MONO);       
DrawEdge(FBitmap.Canvas.Handle, lRect, EDGE_RAISED, BF_RECT);
DrawEdge(FBitmap.Canvas.Handle, lRect, EDGE_SUNKEN, BF_RECT);
DrawEdge(FBitmap.Canvas.Handle, lRect, EDGE_ETCHED, BF_RECT);

Thanks for any input.

Platform: Delphi 10.4 with FMX

Peter Jones
  • 451
  • 2
  • 12
  • 1
    [`DrawEdge()`](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-drawedge) is a Win32 API function, not a VCL function. There is no equivalent provided by FMX. You will just have to draw the edges yourself. – Remy Lebeau Jun 23 '21 at 06:47
  • Has anyone come across an opensource fmx component that simulates this? so I don't have to re-invent the wheel? – Peter Jones Jun 23 '21 at 06:50
  • @PeterJones: Probably not, since FMX is about modern UIs and `DrawEdge` is about legacy 3D looks. In any case, it isn't a particularly complicated wheel. – Andreas Rejbrand Jun 23 '21 at 07:27

0 Answers0