Share Canvas Widget

Using the HMI Builder and creating custom interfaces for the BCS.
Post Reply
User avatar
oakbarn
Posts: 803
Joined: Thu Jan 05, 2012 2:28 pm
Bot?: No
Location: Texas
Contact:

Share Canvas Widget

Post by oakbarn » Mon Apr 14, 2014 3:43 pm

Does any one have some code to share. I really do not want to learn Java, but am good at copying and changing existing code if I can figure it out.

User avatar
JonW
Site Admin
Posts: 1622
Joined: Sun Jul 18, 2010 7:51 am
Bot?: No
Location: Huntington Beach, CA
Contact:

Re: Share Canvas Widget

Post by JonW » Mon Apr 14, 2014 5:05 pm

There are several links to code samples of javascript here in the forum (somewhere).

User avatar
oakbarn
Posts: 803
Joined: Thu Jan 05, 2012 2:28 pm
Bot?: No
Location: Texas
Contact:

Re: Share Canvas Widget

Post by oakbarn » Mon Apr 14, 2014 5:50 pm

I have found a few but not exactly what I want quite yet. I looked at the sample in the Wiki (Blue Dot). It looks like you have to "draw" the widget using code. I was hoping for some code that could load an image file.

User avatar
oakbarn
Posts: 803
Joined: Thu Jan 05, 2012 2:28 pm
Bot?: No
Location: Texas
Contact:

Re: Share Canvas Widget

Post by oakbarn » Sat Apr 19, 2014 5:43 pm

Yahoo. I made my own widget using the sample code at http://www.embeddedcc.com/hmi/external.js

Can you use a gif as a widget object (widgetObj) ? There is some code on the web that looks like you can, but the code I saw was "dynamic" so you would need to be connected for it to work.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest