DXCanvas Preview

a canvas implementation for DesktopX

Every major browser has support for it, Yahoo! Widgets has support for it, how come there isn't something for DesktopX?

Enter DXCanvas, a DesktopX drawing plugin that implements the Canvas spec (plus some DesktopX-specific additions).

The image below next to the Canvas Controller is dynamically created from script (actual code used: ~50 lines of VBScript)

Canvas Controller Widget

Some reading on the canvas:

HTML 5 Spec

Canvas Tutorial
7,190 views 12 replies
Reply #1 Top
:CONGRAT: :HOT:

Sweet, I'm as giddy as a little school girl!
Reply #2 Top
This is really nice!
Reply #3 Top
Where is the plugin available from?  I don't see it in the DX gallery.
Reply #4 Top
This could be very interesting.  ;) 
Reply #5 Top
Where is the plugin available from? I don't see it in the DX gallery.


It's not available yet. Hence the forum choice and post name... :D

A test version should be available soon (once I finish implementing proper state management). It won't provide shadows, text, patterns and images at first, but you will still be able to do a lot of fun things.

After fixing a few more things, I got charts working today. The lack of text support makes it a little bit less useful though.

+1 Loading…
Reply #6 Top
The lack of text support makes it a little bit less useful though.
Reply #7 Top
After fixing a few more things, I got charts working today. The lack of text support makes it a little bit less useful though.


Since you'll have the x,y positions for the chart anyway could this not be done with an external mouse over object? Something like an image map if that makes sense.
Reply #8 Top
Since you'll have the x,y positions for the chart anyway could this not be done with an external mouse over object? Something like an image map if that makes sense.


If it's mousing over to get the value, since I'm not intercepting windows messages yet, it's possible using standard DesktopX callbacks.

For axes names, ticks and legends, you really want to be able to draw text. Using DesktopX objects to achieve that would be kind of tedious, especially if the graph is built dynamically.
Reply #9 Top
For axes names, ticks and legends, you really want to be able to draw text. Using DesktopX objects to achieve that would be kind of tedious, especially if the graph is built dynamically.


Agree it would be tedious if done manually but, using the parameters from the canvas it could be done through cloning. You would just need to make sure the calculations were relative to the chart/canvas size.

Of course it would use more resources depending on the graph. I'll look through my archives at some of the old graph objects I worked on to demonstrate what I mean.
Reply #11 Top
Seems complicated.


I agree, Zubaz reply #6 makes that very clear.  :SURPRISED:  :LOL: 
Reply #12 Top
A test version is available :D

Make sure to read the post to see what's working or not.