Hiya Mark,

I should learn to state my problem better.. sorry for that.

The basic idea is that I want the user to be able to use the pointer tool where some objects can be resized and some can't. The objects which cannot be resizen are groups with objects in them. I call them components.

As I understand, while the pointer tool is chosen, the revolution don't send mouseDown messages, correct?

Now the grab command would do this for me, but then I would have to change the tool to browser and keep the pointer cursor in order to 'cheat' the user thinking that the tool is not changing. Maybe this is the only way to achieve this, but this is why I'm asking. Playing with cursors and tools gets the code much more messy, so I want to avoid this if possible.

Maybe the problem is not a programming problem, but application design one. Still lots to learn from Revolution I reckon :D


Sakari Ruoho

On Feb 18, 2008, at 2:48 PM, Mark Schonewille wrote:

Hi Sakari Ruoho,

If you set the lockLoc to true, you can still move the control around by script, depending on what you want to achieve, you might use e.g.

on mouseDown
 repeat while the mouse is down with messages
   set the loc of me to the mouseLoc
   wait 0 millisecs with messages
 end repeat
end mouseDown

or

on mouseDown
grab me
end mouseDown

Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Convert colours between different colour spaces with Color Converter. Download at http://economy-x-talk.com/cc.html



Op 18-feb-2008, om 13:34 heeft Sakari Ruoho het volgende geschreven:

Thanks Björnke, but I want to be able to move the control(just block the resize), forgot to mention that in the first post.

Sakari Ruoho

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to