Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Blue's Ranbow Q

Author
Message
Guyon
20
Years of Service
User Offline
Joined: 6th Jun 2003
Location: United States
Posted: 3rd Mar 2005 02:04 Edited at: 3rd Mar 2005 02:05
In Rainbow what is the Canvas Gadget used for and can you give an example?
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 3rd Mar 2005 03:23
The canvas gadget is the gadget equivilent of a blank piece of paper, using the canvas drawing commands (including drawLine, drawPoint, drawRect, drawEllipse, drawText and setDrawingColor) you can use it to create your custom gadgets or use it to display status info such as graphs.

In Rainbow you just place the canvas gadget and it will appear as a black rectangle, to make it useful you have to add drawing code in the DarkBASIC editor.

For an example, have a look at the Canvas example in the 'Simple Gadget' folder.


BlueGUI Windows Plugin
Guyon
20
Years of Service
User Offline
Joined: 6th Jun 2003
Location: United States
Posted: 3rd Mar 2005 06:40
Thanks Rob

Login to post a reply

Server time is: 2024-04-27 05:05:19
Your offset time is: 2024-04-27 05:05:19