Jump to content
Software FX Community

Re: Labeling Axis


User (Legacy)

Recommended Posts

I have one last question regarding your suggestion 

How do I put variable into the labeling command. You have suggested the

following:

pAxis->set_Label(i,L"StringLabel");

I noticed the L"StringLabel" is a wchar_t * type. How do I cast a AnsiString

variable or a char variable into this type. I have tried to cast a char

type to wchar_t first, then passing the reference of this wchar_t to wchar_t

* variable. I have run into access violation with this methond. Thank You!

Francisco Padron <frankp@softwarefx.com> wrote in message

news:DE0379D14694D211B4CE00609770710D04E445@sftfx-221.wamnet.net...

> Looks like Borland/Inprise did it again ! For some reason when they

imported

> the ActiveX, they left out some properties, in this case Label, I guess

> because it is a string array (beats me !). Anyway, the workaround is to

> call:

>

> ChartFX1->Legend[i] = L"StringLabel";

>

> or

>

> pAxis->set_Label(i,L"StringLabel");

>

> Frank

> SFX

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...