Page 1 of 1

font problems

Posted: Mon Jan 02, 2006 4:10 pm
by 9638326
hi there,
i got a problem about font types, .NET, C#
i am loading several fonts from a saved aquisition like:

Code: Select all

this.chart.GetSeries.Chart.Axes.Bottom.Title.Font;
or

Code: Select all

this.chart.GetTChart.Header.Font;
unfortunaly it seems this font differs from the System.Drawings.Font class since something like this:

Code: Select all

this.label1.Font = this.chart.GetTChart.Header.Font; 
cannot be done..
even with

Code: Select all

this.label1.Font = (System.Drawings.Font) this.chart.GetTChart.Header.Font; 
typcasting its not possible.
i could get the single properties like

Code: Select all

this.lyaxisfonttest.Strikeout=this.chart.GetSeries.Chart.Axes.Left.Title.Font.Strikeout; 
but of course font properties of system labels are writeprotected, so you have to use the fontdialog or create a new font, either
way u got to give a full font-property-container...but is this really true?
seems absurd, since i suppose this to be an easy- or often needed- problem, any ideas?
thanks and regards,
Robert

Posted: Mon Jan 02, 2006 6:12 pm
by Pep
Hi Robert,

you can easily assign it usign :
labelFont.Font = tChart1.Header.Font.DrawingFont;

Posted: Tue Jul 25, 2006 7:59 am
by 9638326
hi pep,

thx for help, thats working :)
but what about :

Code: Select all

private Steema.TeeChart.Chart _myChart;
this._myChart.Axes.Bottom.Title.Font = this._myChart.Axes.Left.Title.Font;               
            // or ~.DrawingFont;
what to do about the write-protection of the font property ?
regards,
rob

Posted: Wed Jul 26, 2006 8:23 am
by narcis
Hi rob,

I'm afraid to copy the desired font properties separatelly, for example:

Code: Select all

      tChart1.Axes.Bottom.Title.Font.Size = tChart1.Axes.Bottom.Title.Font.Size; 

Posted: Wed Jul 26, 2006 8:42 am
by 9638326
hi narcis,

thx for reply, allready done like this and its working but too bad there isnt a more convenient way for this :?

regards,
rob

Posted: Fri Jul 28, 2006 11:43 am
by narcis
Hi rob,

I added this to our wish list to be changed for future releases.

Posted: Fri Mar 09, 2007 3:46 am
by 9643419
Hi, NarcĂ­s

This issue is on long pending.
When can I except this one can be released?


Best Regards.

Posted: Fri Mar 09, 2007 8:45 am
by narcis
Hi wilcohsu,

I can't give you a date of when it will be implemented for now. Please be aware at this forum for new release announcements and what has been implemented on them.