font problems

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Torte
Newbie
Newbie
Posts: 19
Joined: Fri Sep 16, 2005 4:00 am

font problems

Post by Torte » Mon Jan 02, 2006 4:10 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jan 02, 2006 6:12 pm

Hi Robert,

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

Torte
Newbie
Newbie
Posts: 19
Joined: Fri Sep 16, 2005 4:00 am

Post by Torte » Tue Jul 25, 2006 7:59 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jul 26, 2006 8:23 am

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; 
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Torte
Newbie
Newbie
Posts: 19
Joined: Fri Sep 16, 2005 4:00 am

Post by Torte » Wed Jul 26, 2006 8:42 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jul 28, 2006 11:43 am

Hi rob,

I added this to our wish list to be changed for future releases.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

wilcohsu
Newbie
Newbie
Posts: 40
Joined: Mon Dec 18, 2006 12:00 am

Post by wilcohsu » Fri Mar 09, 2007 3:46 am

Hi, Narcís

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


Best Regards.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Mar 09, 2007 8:45 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply