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

Message ListMessage List     Post MessagePost Message

  ChartDirector library Dear Imgui integration
Posted by al072 on Aug-02-2021 15:29
Hi, dear developer! Is it possible to use your great library with Dear Imgui?

Here id Dear Imgui source: https://github.com/ocornut/imgui

If it possible what should i use instead C++ Picture Control , i am trying to port my projet to imgui from C++ MFC.

Thank you very much!

  Re: ChartDirector library Dear Imgui integration
Posted by Peter Kwan on Aug-02-2021 20:16
Hi al072,

I have never used "Dear Imgui" before. As far as I know, it is possible to use ChartDirector is all GUI frameworks that I know of. There is even a page in the documentation on how to do it:

https://www.advsofteng.com/doc/cdcpp.htm#othergui.htm

In brief, ChartDirector outputs the chart in standard formats, such as BMP, PNG, JPG, GIF, SVG and PDF. If a GUI framework can display one of them, it can display the charts. All GUI frameworks I know of can display at least one of them. I believe it is possible to display an image with "Dear Imgui" too.

The above page also mentions how to support hotspots and tooltips. In brief, if your GUI framework can support mouse events, you can ask ChartDirector if the mouse is hovering on a hot spot, and obtain the hot spot parameters. You can then use your GUI framework to display those information (such as in a pop-up box like a tooltip, or using any method supported by your GUI framework).

Regards
Peter Kwan

  Re: ChartDirector library Dear Imgui integration
Posted by al072 on Aug-02-2021 20:28
Hi, Peter! I really appreciate your quick answer! I will check it up!