Jump to content
Software FX Community

Re: How to Assign a Font to a Constant Line ???

User (Legacy)

Recommended Posts

Hi Frank,

Okay, that works fine except for the fontcolor property.

I work with Delphi so the syntax looks a little dfferent:

ChartFX1.FixedFont.Name := FontDialog1.Font.Name;

ChartFX1.FixedFont.Size := FontDialog1.Font.Size;

ChartFX1.FixedFont.Style := FontDialog1.Font.Size;

ChartFX1.FixedFont.Color := FontDialog1.Font.Color;

Everything: Name, Size, Style (bold,italic,underline) are passed through the chart

except the fontcolor.

Any ideas ?


Maurice Wasbauer

Francisco Padron < frankp@softwarefx.com> wrote in message news:DE0379D14694D211B4CE00609770710D055942@sftfx-221.wamnet.net...

> You can use the FixedFont property for this. For example:


> CommonDialog1.Flags = cdlCFBoth

> CommonDialog1.ShowFont

> ChartFX1.FixedFont.Name = CommonDialog1.FontName

> ChartFX1.FixedFont.Size = CommonDialog1.FontSize

> ChartFX1.FixedFont.Bold = CommonDialog1.FontBold

> ....


> --

> Frank



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...