ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Icon Angular Meter
Posted by Sofia on Aug-23-2012 21:12
Hello,

I am trying to add icon in my Icon Angular Meter, but I fail.
How to use the Methods  setSearchPath and addText? Is this correct:

m->setSearchPath("C:;Document and Settings;Sofia;Desktop;Sofia");
m->addText(20, 35, _TEXT("<*img=iconameter.png*>"));
My picture is in folder Sofia on Desktop.

Thank you,
Sofia

  Re: Icon Angular Meter
Posted by Peter Kwan on Aug-24-2012 02:43
Hi Sofia,

First, please determine the path to your folder. You may right click on your folder, and select Properties. It should display the location of your folder.

Suppose your folder is at "C:\\Document and Settings\\Sofia\\Desktop" and it is called Sofia. The code should be:

m->setSearchPath("C:\\\\Document and Settings\\\\Sofia\\\\Desktop\\\\Sofia");
m->addText(20, 35, "<*img=iconameter.png*>");

Note that C++ syntax requires you to use "\\\\" instead of "\\". You may also use "/" as Windows support both "\\" and "/" as the separator.

There is no need to use _TEXT in the code.

Hope this can help.

Regards
Peter Kwan

  Re: Icon Angular Meter
Posted by Sofia on Aug-24-2012 14:42
That is exactly what I need.
Thanks a lot  Peter for your help

Regards,
Sofia