Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Does Whiteboard support... How can I....

Avatar

Level 2
How can I add mx.core.UIComponents to the Whiteboard?



How do I draw on the Whiteboard programmatically using the
API ?





Great work



Cheers,

Arnie Widdowson



4 Replies

Avatar

Level 10


Hi Arnie,



Yes, you can add UIComponents to the whiteboard, but I'm not
going to say it's easy =). You should have a look at the way the
WBShapesToolbar interfaces with WBShapeFactories and the WBCanvas
(these are all in the coreUI/controls dir). At some point, we're
going to look at making this API easier, but it's still possible
for someone willing to hack, and read through source a bit. Feel
free to ask more specific questions as you explore - I'd love to
have a guinea pig brave enough to help show us how to make this
better =).



thanks

nigel

Avatar

Level 2

Nigel,

I would like to pick back up on this, and be the guinea pig.

Here's a concept:

http://www.ajlogo.com/SFS220/bin-debug/SFS220.html

It's an MDI of sorts.

The Icons can be copied from Icon window and then moved from window to window or to the base window

The windows can be nested in other windows

I did some hacking earlier and didn't get far.

I'd like to get into serious hacking (and question asking) but I may need to ask not-so-specific questions.

Hence why I would like you to see my concept, and take pitty on my Factory skills among others.

Cheers,

Arnie

Avatar

Level 2

Hello,

My latest prototype:

http://www.colabry.com/SFS530/SFS530.html

It has two draggable/nestable  panels, two draggable/nestable canvases, a TextArea and a WhiteBoard.

Focused Question:

Is it possible to force the ToolBar to be collaboratly placed rather than autonomusly/independantly ?

Cheers,

Arnie

610-944-5890

ajlogo@gmail.com

Avatar

Level 2

Hi,

It's starting to work !!

I've created my own Shape and ShapeFactory based on Canvas, and added it to the ToolBar.

But the way cool part is that I can drag a Canvas from non-Whiteboard space and drop it as a registered shape on the Whiteboard.

www.colarbry.com

Cheers,

Arnie

610-944-5890

ajlogo@gmail.com