DXCanvas Preview

a canvas implementation for DesktopX

Sunday, August 24, 2008 by Littleboy | Discussion: Sneak Previews

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
SirSmiley
Reply #1 Monday, August 25, 2008 1:24 PM


Sweet, I'm as giddy as a little school girl!
butch123
Reply #2 Monday, August 25, 2008 1:34 PM
This is really nice!
ZubaZ
Reply #3 Monday, August 25, 2008 1:46 PM
Where is the plugin available from?  I don't see it in the DX gallery.
Philly0381
Reply #4 Monday, August 25, 2008 2:24 PM
This could be very interesting.   
Littleboy
Reply #5 Monday, August 25, 2008 3:25 PM
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...

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.

ZubaZ
Reply #6 Monday, August 25, 2008 3:31 PM
The lack of text support makes it a little bit less useful though.
SirSmiley
Reply #7 Monday, August 25, 2008 4:28 PM
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.
Littleboy
Reply #8 Monday, August 25, 2008 5:16 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.


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.
SirSmiley
Reply #9 Monday, August 25, 2008 9:55 PM
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.
PuterDudeJim
Reply #10 Tuesday, August 26, 2008 12:13 AM
Seems complicated.   
Philly0381
Reply #11 Tuesday, August 26, 2008 12:39 AM
Seems complicated.


I agree, Zubaz reply #6 makes that very clear.     
Littleboy
Reply #12 Tuesday, August 26, 2008 7:04 AM
A test version is available

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

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!



web-wc01