DXCanvas Preview
a canvas implementation for DesktopX
Sunday, August 24, 2008 by Littleboy | Discussion: Sneak Previews
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)

Some reading on the canvas:
HTML 5 Spec
Canvas TutorialReply #3 Monday, August 25, 2008 1:46 PM
Reply #5 Monday, August 25, 2008 3:25 PM
It's not available yet. Hence the forum choice and post name...
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.

Reply #6 Monday, August 25, 2008 3:31 PM

Reply #7 Monday, August 25, 2008 4:28 PM
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 Monday, August 25, 2008 5:16 PM
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 Monday, August 25, 2008 9:55 PM
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 Tuesday, August 26, 2008 12:39 AM
I agree, Zubaz reply #6 makes that very clear.
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Monday, August 25, 2008 1:24 PM
Sweet, I'm as giddy as a little school girl!