On 16 Jan 2004, at 02:46, [EMAIL PROTECTED] wrote:
Message: 6 Date: Fri, 16 Jan 2004 09:38:44 +0900 From: Doug Lerner <[EMAIL PROTECTED]> Subject: Re: Restricting graphics to a field? To: How to use Revolution <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="US-ASCII"
I think I understand your first message better than the "more complete" followup. :)
I can't follow what you are suggesting about the field-under-an-image.
doug
Hi,
I mean an image on top of a field.
Some changes to avoid the problem caused by the transparency
and the opaque condition of the image (which can crash the app
occasionally or often)
The field will catch the mousemove as the image gets a transparent condition
when drawing only one pixel.
As there is still an unresolved bug with the select tool it is not usable
in this handler.
The spray can tool is tricky too, but can be used with this change.
In revolution the erasor tool and the spray can tool will not show their icon
when chosen by script, in metacard they do.
(when using drawing tools, the overhead in revolution is enormous compared to metacard)
Make the image and the "underlying" field the same size.
Set the scripts of both to (I know its kind of dirty but is simple and only for demo):
on mousemove
if the mouseloc is within the rect of img "xxx" then
if the mouse is not down then
put the hilitedbuttonname of group "tool" into a
if a is "spray can" then choose spray can tool
else choose a tool
checkformousewithin
end if
end if
end mousemoveand set the script of the card to:
on checkformousewithin
if the mouseloc is within the rect of img "xxx" or the mouse is down then
send "checkformousewithin" to me in 100 millisecs
else
choose browse tool
end if
end checkformousewithin
Greetings, WA
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
