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

Message ListMessage List     Post MessagePost Message

  icon application
Posted by lari3 on Jun-08-2013 01:32
hello,
I want to change the icon of my application but i don't know why??????????,,,
please help me

  Re: icon application
Posted by Peter Kwan on Jun-08-2013 03:34
Hi lari3,

By "icon of my application", are you referring to the icon at the top left corner of your window, or are you referring to icons you use in charts?

For the icon of your window, you may refer to the documentation of your GUI framework on how to modify the icon. For example, if you are using Java SWING, the API is java.awt.Frame.setIconImage.

Regards
Peter Kwan

  Re: icon application
Posted by lari3 on Jun-08-2013 05:23
my application is about traceroute
i work with chartdirector and swing
i meens by icon , the icon in my interfaces i need to changeit by router

  Re: icon application
Posted by Peter Kwan on Jun-11-2013 01:27
Hi lari3,

To include an icon in the label, you may use the CDML tag "<*img=/path/to/myicon.png*>". For example, instead of using "xxx", "yyy", "zzz" as the label, you may use "<*img=/path/to/myicon.png*> xxx", "<*img=/path/to/myicon.png*> yyy" and "<*img=/path/to/myicon.png*> zzz". If you want the text to be displayed on the next line, you may use a linefeed character ("\\n" in Java) to separate the icon and the text.

There are several examples of using icons in ChartDirector, such as in the "Icon Pie Chart (1)" and "Icon Pie Chart (2)" sample code. May be you can use them as references.

Hope this can help.

Regards
Peter Kwan