Chart Header Frame Editor

TeeChart for ActiveX, COM and ASP
Post Reply
hansw
Newbie
Newbie
Posts: 59
Joined: Fri Nov 15, 2002 12:00 am

Chart Header Frame Editor

Post by hansw » Mon Jan 05, 2004 3:39 am

CTitle hd = m_Chart1.GetHeader();
hd.GetFrame().ShowEditor();

Editor shows up and changes can be made.
However none of the changes ever take effect.

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Jan 05, 2004 9:29 am

Hi --
CTitle hd = m_Chart1.GetHeader();
hd.GetFrame().ShowEditor();

Editor shows up and changes can be made.
However none of the changes ever take effect.
Try:

Code: Select all

CTitle hd = m_Chart1.GetHeader(); 
hd.GetFrame().SetTransparent(false);
hd.GetFrame().ShowEditor(); 
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

hansw
Newbie
Newbie
Posts: 59
Joined: Fri Nov 15, 2002 12:00 am

Does not work

Post by hansw » Mon Jan 05, 2004 2:16 pm

The compiler error states:
SetTransparent' : is not a member of 'CPen1'

Looks like you are trying to make it visible... so I tried

hd.GetFrame().SetVisible(true);

Did nothing except set teh Visible checkbox in the editor.

Frame or border is still not visible.

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Wed Jan 07, 2004 6:59 am

Hi --
The compiler error states:
SetTransparent' : is not a member of 'CPen1'
Sorry, my mistake. Try:

Code: Select all

void CVCplus6AXv6Dlg::OnButton1() 
{
    CTitles hd = m_Chart1.GetHeader(); 
    hd.SetTransparent(false);
    hd.GetFrame().ShowEditor(); 	
}
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply