[Q] SimpleGraph - Different background colour...

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

[Q] SimpleGraph - Different background colour...

Postby TheEdge » July 3rd, 2006, 11:04 am

G'Day,

- If I have a SG that is:

Color := clWhite;
Zoom := 100;
GraphConstraints.MaxHeight := 100;
GraphConstraints.MaxWidth := 100;

Then the entire SG is white. If I then set the Zoom to 50 is there any way to colour the SG a different colour *within* the drawing surface (say still white) and a different colour *outside* the drawing surface (say red)? ie A different colour outside the dashed line that indicates the drawing area?

TIA
TheEdge
Active Member
Active Member
 
Posts: 15
Joined: March 14th, 2006, 8:47 pm

Postby Kambiz » July 3rd, 2006, 4:49 pm

You can use OnAfterDraw event to color the excluded area with a different color.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 2 guests

cron