Jump to content
Software FX Community

Brush Pattern...

User (Legacy)

Recommended Posts

I'd like to draw Series Legend on Other Place.

But I can't get Brush Info only When Schema is 'BW Pattern' or 'Color


How can I get All of Brush Information ??

procedure ChartFX1PrePaintMarker(Sender: TObject;

nSerie: Smallint; nPoint: Integer; var nRes: Smallint);


hDeviceC, hOldBrush : HDC;

nHBrush :HBRUSH;




hDeviceC := ChartFX1.PaintInfo(CPI_GETDC);

hOldBrush := SelectObject(hDeviceC, GetStockObject(NULL_BRUSH));

GetObject(hOldBrush, SizeOf(nLogBrush), @nLogBrush );

if HBRUSHArray[nSerie] <> 0 then DeleteObject(HBRUSHArray[nSerie]);

HBRUSHArray[nSerie] := CreateBrushIndirect( nLogBrush );

SelectObject(hDeviceC, hOldBrush);


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...