Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently October 2nd, 2024, 9:24 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: very basic whiteboard possible?
PostPosted: March 28th, 2011, 8:30 am 
Offline

Joined: August 5th, 2010, 1:42 pm
Posts: 109
Opus: Creator v9 Opus v7
OS: windows
I am trying to make a very basic whiteboard where you paste a picture and you can write around (for vocabulary learning purposes). If I use a tex input box I can write on it (I don't need to store the words) but only from the right down like in a normal text processor, but I can't write anywhere like in a whiteboard. Maybe I need some script in the text input box or in a normal tex box? Any sugestions?
Thanks


For this message Isma has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: very basic whiteboard possible?
PostPosted: March 28th, 2011, 10:51 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Isma,

if I understand correctly, you have one text box and entering text is causing it to align, by default, to the side of that box rather than where the user is clicking on the 'whiteboard'.

Basically, it sounds like you need to place a text box at the location of the mouse click? If this is the case, then you have two options. The first is to have lots of text boxes off screen and move them to the mouse action - all of which can be done without programming. Alternatively, but cleaner, would be to use clones (see Opus Script) to create a copy of a master textbox and use get mouse position to set the location.

Have a try and if it doesn't work and you're happy to use some script, then myself or somebody will post a basic example.

Regards,

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: very basic whiteboard possible?
PostPosted: March 28th, 2011, 12:23 pm 
Offline

Joined: August 5th, 2010, 1:42 pm
Posts: 109
Opus: Creator v9 Opus v7
OS: windows
Hi Mack, What I would like to do is exactly what you said, but without programming i can't get it so far.
With the clone function I will make copies of one tex box as you said and then...Where will I place the script? Into the frame that work as the whiteboard? Because it should be the mouse that moves around the frame the one which moves the tex box or tex boxes...that can be done with the action move object to cursor.
I am a bit loss with this but could you please send me a basic example with scrip?
Thanks


For this message Isma has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: very basic whiteboard possible?
PostPosted: March 28th, 2011, 1:55 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Isma,

Here's a very simple example. Right click on the green bit and it'll clone the TB ready for text entry.

Mack


You do not have the required permissions to view the files attached to this post.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: very basic whiteboard possible?
PostPosted: March 28th, 2011, 4:09 pm 
Offline

Joined: August 5th, 2010, 1:42 pm
Posts: 109
Opus: Creator v9 Opus v7
OS: windows
Hi Mack,

I opened and tried your example but when I right clicked it says: Action (2, 0) : Undefined identifier 'TB'
Something wrong.??


For this message Isma has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: very basic whiteboard possible?
PostPosted: March 28th, 2011, 5:54 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Isma,

I've just downloaded and reopened and it works fine.

You've nothing posted in your profile. Are you actually running Opus Pro 7 with recent updates?

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: very basic whiteboard possible?
PostPosted: March 29th, 2011, 4:56 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 511
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
If you wanted to jump into scripting, this possibly can be done using an event handler to get the mouse position, then use the drawline script to draw lines between the last position and the new position.....more like draing on a whiteboard.......however, I tried something like this before and ran into problems...If I remember correctly....as more and more points were drawn, the response of the event handler slowed to a crawl and was un-usable.....I'll see if I can find the old application.

Sandy

_________________
Whoever designed this, never actually used it!


For this message sandyn has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: very basic whiteboard possible?
PostPosted: March 31st, 2011, 10:50 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 511
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I've had a quick look at how this can be done. I modified another application which used an event handler and a small function to draw a line between the last two mouse points. It works well, but does slow down as the line gets longer. I still haven't attached mouse actions to stop,start the line, but it gives you the abiity to use the mouse to draw a line. like a whiteboard. unfortunately when I extracted the pages to a new aplication, it won't work, so have to figure out why...when I have time.

_________________
Whoever designed this, never actually used it!


For this message sandyn has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: very basic whiteboard possible?
PostPosted: May 12th, 2011, 4:53 pm 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
Mack's solution works great here. I did similar a while back, and it's fine.

Although this is an area I would like to see DW improve upon, maybe offering an advance feature set for people who develop software for Interactive Whiteboards. So we could more easily provide drawing tools, text tools, etc. Although these are provided for in Opus 7, an easily implemented offering would be great.

_________________
Opus Pro 9.75 on MacBookPro (2020 Intel) running Parallels 19 with Windows 10 (x64)


For this message lmc has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group