| T O P I C R E V I E W |
| haida |
Posted - Apr 04 2012 : 01:33:33 Hi @all.
I need to fill polygons with a hatching (eg BrushStyle bsFDiagonal). I call following code on a toolbutton. Drawing works fine, but the polygon is not filled?
imgVect.MouseInteractVt := [miPutPolyLine]; imgVect.ObjBrushStyle[-1] := bsFDiagonal; imgVect.ObjBrushColor[-1] := clRed;
Is there a way to fill a polygon?
Thanks. alex |
| 3 L A T E S T R E P L I E S (Newest First) |
| fab |
Posted - Apr 04 2012 : 23:10:52 quote: Is there a way to suppress adding points to the polygonline, while keeping the mouse button pressed? I want only single clicks to add points to the polyline.
I'm sorry, no. At the moment, it cannot be disabled. |
| haida |
Posted - Apr 04 2012 : 07:52:40 Thanks Fabrizio. That works.
Is there a way to suppress adding points to the polygonline, while keeping the mouse button pressed? I want only single clicks to add points to the polyline. |
| fab |
Posted - Apr 04 2012 : 04:40:05 Hello Alex, polyline must be closed to become filled polygon. So, you should set also:
imgVect.ObjPolylineClosed[-1] := true; |