Re: identify broken images

2004-12-27 Thread Derek Bump
> Or am I missing something?

A "broken" image is an image who's contents are not entirely there.  This often 
happens when a connection is lost while downloading files over the internet.  
The file in fact does reside on your computer's hard drive, but it is not 
entirely complete.

The script that you showed would only verify the file's presence, not it's 
integrity.
 

Derek Bump
Dreamscape Software

Compress Images Easily with JPEGCompress
http://www.dreamscapesoftware.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


programming

2004-12-27 Thread Paul Salyers


Anyone here interested din programming for me in Rev?
Paul Salyers
PS1 - Senior Rep.
[EMAIL PROTECTED]
http://ps1.softseven.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Arrow keys on background list field

2004-12-27 Thread Ken Ray
On 12/27/04 10:05 AM, "duane poncy" <[EMAIL PROTECTED]> wrote:

> Also, the arrow key seems to bring up the last
> card I was on, instead of the next card on the list.
> Sometimes it even brings up the Rev Documentation
> stack if I've been using that recently.
> 
> Thanks for any help you can give me!

  set the navigationArrows to false

That should do it...

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: identify broken images

2004-12-27 Thread Ken Ray
On 12/27/04 6:03 AM, "Thierry Arbellot" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Have you tried the size property on the image ?
> if the size of image "im_1" =  0 then ...
> 
> Thierry
> 
> On Monday, Dec 27, 2004, at 00:11 Europe/Paris, Claus Dreischer wrote:
> 
>> Hi,
>> 
>> i have a small problem i don't see a simple solution for.
>> Maybe someone here has one.
>> 
>> I want to display JPGs from file, so i make a
>> 
>> put URL ("binfile:" & my_file) into image "im_1"
>> 
>> This is working OK.
>> But when the JPG in the filepath my_file is faulty (broken download or
>> something)
>> The above line displays an empty image "im_1".
>> 
>> I now want to identify these faulty images.
>> I tried the following with no result:
>> 
>> if the imagedata of image "im_1" is not empty then ...
>> 
>> if image "im_1" is not empty then ...
>> 
>> if the length of image "im_1" > 0 then ...
>> 
>> 
>> Has anyone an idea how to identify an "empty" image?
>> (its not realy empty but nothing is displayed)

Can't you just say:
 
 if there is a file (the fileName of image "im_1") then
answer "it's cool"
 else
answer "it's missing"
 end if


Or am I missing something?

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: MP3 VS MP4

2004-12-27 Thread Paul Salyers

I had heard that Mac was producing an MP4 format for sounds that is going 
be compressed tighter than MP3, also it's going be a Public Domain format. 
(FREE) no license will be needed.

Would like this confermed if anyone knows about it.
Paul Salyers
PS1 - Senior Rep.
[EMAIL PROTECTED]
(918) 465-7426 -- Cell
(918) 967-1013 -- Home 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: MP3 VS MP4

2004-12-27 Thread Marian Petrides
Paul,
Not sure this is what you are referring to, but iTunes music store 
downloads have an extension of  .m4p  These files are "protected AAC" 
file, i.e. encrypted Advanced Audio Coding format files.  Unencrypted 
AAC files have an extension of  .m4a

A google search on AAC yielded the following info:
First: http://www.apple.com/mpeg4/aac/
has a lot of background information and a PDF file MPEG-4 Fact Sheet.
Second:  the following excerpt comes from:
http://www.vialicensing.com/products/mpeg4aac/standard.html
Advanced Audio Coding (AAC) is a wideband audio coding algorithm that 
exploits two primary coding strategies to dramatically reduce the 
amount of data needed to convey high-quality digital audio. First, 
signal components that are "perceptually irrelevant" and can be 
discarded without a perceived loss of audio quality are removed. Next, 
redundancies in the coded audio signal are eliminated. Efficient audio 
compression is achieved by a variety of perceptual audio coding and 
data compression tools, which are combined in the MPEG-4 AAC 
specification.

 The MPEG-4 AAC standard incorporates MPEG-2 AAC, forming the basis of 
the MPEG-4 audio compression technology for data rates above 32 kbps 
per channel. Additional tools increase the effectiveness of AAC at 
lower bit rates, and add scalability or error resilience 
characteristics. These additional tools extend AAC into its MPEG-4 
incarnation (ISO/IEC 14496-3, Subpart 4).

HTH.
Marian

On Dec 27, 2004, at 7:53 PM, Paul Salyers wrote:

I heard there was a better sound format called MP4. Anyone know any 
thing about this for sure?

Paul Salyers
PS1 - Senior Rep.
[EMAIL PROTECTED]
http://ps1.softseven.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


MP3 VS MP4

2004-12-27 Thread Paul Salyers

I heard there was a better sound format called MP4. Anyone know any thing 
about this for sure?

Paul Salyers
PS1 - Senior Rep.
[EMAIL PROTECTED]
http://ps1.softseven.org 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: identify broken images

2004-12-27 Thread Claus Dreischer
At 16:22 Uhr -0600 27.12.2004, Derek Bump wrote:
I did notice that compairing the "imagePixmapID" is giving me clues 
to solve the problem.  If the image is a "referenced" image, and it 
is broken, it seems to be reporting empty.  If the image is not 
"referenced", and it is broken, the imagePixmapID is reporting a 
negative number.  Is this what your looking for...

if (the imagePixmapID of img "test") is empty then
   answer "This image is broken and unreadable."
   exit to top
end if
Derek Bump
Hi Derek,
THAT'S exactly what i was looking for!
Thank you.
Now, how can this information come back to  bug 762?
Klaus?
Can you put this solution/information there so that other people can find it?
Once again, thanks Derek.
Regards,
Claus.
(the tall one ;)
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Arrow keys on background list field

2004-12-27 Thread Cubist
sez [EMAIL PROTECTED]:
>I need some help on my Cherokee Dictionary project. 
>I have my entries on separate cards and a scroll list
>field of dictionary entries on a background group.
>Everything works fine when I use my find field or
>when i click on the entry directly. The problem comes 
>when I try to use the arrow keys to move up or down
>on the list. I am guessing that is because each time
>I change my selection I am moving to a new card. 
>I have tried to change the hilighted line
>on the new card with a handler, but this doesn't
>seem to work either.
>
>Also, the arrow key seems to bring up the last
>card I was on, instead of the next card on the list.
>Sometimes it even brings up the Rev Documentation
>stack if I've been using that recently.
   Seems to me that trapping for the "keyDown" message, or perhaps 
"arrowKey", might be helpful here. Something along these lines should do what 
you want:

on keyDown Diskey
  put the hilitedLine of me into CurrentLine
  switch DisKey
  case "left"
# if you want the left arrow to behave the same as the up arrow,
# remove all the code from this 'fork' of the switch
put 1 into NextLine
break
  case "up"
# note: i don't recall the precise syntax for the value of "the 
hilitedLine",
# so you may need to tweak the line immediately after this comment
put max ((CurrentLine - 1), the number of lines in me) into NextLine
break
  case "right"
# see comment for the "left" fork of this switch
put the number of lines in me into NextLine
  case "down"
# same caveat as for "up"
put min ((CurrentLine + 1), the number of lines in me) into NextLine
break
  default
# this fork of the switch covers everything *but* arrow keys.
# do as you please with them
  end switch

  if CurrentLine = NextLine then
# the user is trying to scroll back to before the first line,
# or else to scroll past the last line. BAD user!
beep 2
  else
# let the user scroll normally
set the hilitedline of me to NextLine
if DisKey is in "left up" then
  go prev card
else
  go next card
end if
  end if
end keyDown

   That handler has not been tested, but its underlying logic (if not its 
*syntax*...) should be okay. Hope this helps...
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: identify broken images

2004-12-27 Thread Claus Dreischer
At 10:38 Uhr -0800 27.12.2004, Alejandro Tejada wrote:
on Mon, 27 Dec 2004
Claus Dreischer signed his e-mail with
the following link:

Very nice example of graphic processing
in the server!
What are the steps to achieve this?
Thanks in advance!
al
ooopsi, i forgot to remove the sig.
That's not mine, i ...  aeh .. borrowed it from someone ...
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: use-revolution Digest, Vol 15, Issue 76

2004-12-27 Thread D.Rothe
Thanx I found the answer in the docs

for eac case I used the following code; worked perfectly ;?)

case "Bold"

if the textStyle of the hilitedText is empty then

set the textStyle of the hilitedText to "bold"

else

set the textStyle of the hilitedText to \

(the textStyle of the hilitedText) & comma & "bold"

end if

thanx.

- Original Message -  
> Message: 5
> Date: Mon, 27 Dec 2004 00:10:21 -0600
> From: Ken Ray <[EMAIL PROTECTED]>
> Subject: Re: Identifying text attributes
> To: Use Revolution List 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="US-ASCII"
> 
> On 12/26/04 9:57 PM, "D.Rothe" <[EMAIL PROTECTED]> wrote:
> 
> > How to identify text attributes?
> > Is it possible to identify the style attributes of a selected word in a 
> > field,
> > like in most word processors, when you hilite some text the font name, size 
> > &
> > style is shown in a menu? This would be on the user side not edit.
> 
> Yes, you can get the textFont, textSize, textStyle, etc. of the
> selectedChunk. Check the entry for "textStyle" in the docs to find out how
> to handle multiple text styles in the selection...
> 
> Ken Ray
> Sons of Thunder Software
> Web site: http://www.sonsothunder.com/
> Email: [EMAIL PROTECTED]
> --

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: identify broken images

2004-12-27 Thread Derek Bump
I did notice that compairing the "imagePixmapID" is giving me clues to solve 
the problem.  If the image is a "referenced" image, and it is broken, it seems 
to be reporting empty.  If the image is not "referenced", and it is broken, the 
imagePixmapID is reporting a negative number.  Is this what your looking for...

if (the imagePixmapID of img "test") is empty then
   answer "This image is broken and unreadable."
   exit to top
end if
 

Derek Bump
Dreamscape Software

Compress Images Easily with JPEGCompress
http://www.dreamscapesoftware.com
 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: identify broken images

2004-12-27 Thread Derek Bump
The "size" property of an image will only return a value if the image has been 
imported into Revolution and is not a "referenced" image.  If it is a 
"referenced" image then Rev will always report "0".
 

Derek Bump
Dreamscape Software

Compress Images Easily with JPEGCompress
http://www.dreamscapesoftware.com
 ___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Arrow keys on background list field

2004-12-27 Thread Nicolas Cueto
What I think is happening is that, each time a new card comes up, the
"focus" is no longer on the scroll list field and thus the "arrowKey"
message is being handled by another object. The solution, I imagine, is to
insert some script lines somewhere (the card? the stack?) that use Rev's
"focus", "arrowKey" and "focusedObject" to ensure the scroll list field
always receives the "arrowKey" message.

Cheers,
Nicolas Cueto
(Japan)
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: identify broken images

2004-12-27 Thread Alejandro Tejada
on Mon, 27 Dec 2004
Claus Dreischer signed his e-mail with
the following link:



Very nice example of graphic processing
in the server!
What are the steps to achieve this?

Thanks in advance!

al

=
Visit my site:
http://www.geocities.com/capellan2000/



__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revMail, revGoURL

2004-12-27 Thread Thierry Arbellot
Hi,
If you use rev 2.5, this bug has been fixed.
You should run "check for updates" from the "help" menu.
Thierry
On Monday, Dec 27, 2004, at 18:40 Europe/Paris, duane poncy wrote:
I'm sure I must be doing something stupid, but I am
trying to put an email link in my menu. I have tried
both revMail and revGoURL. Instead of opening my
email program, it opens my browser to an http address
followed by my mailto address. Other links (on
websites, programs, etc.) open correctly, so it's
not my system settings.
I am on a Mac G4 with OSX. Any ideas?
visit elohi gadugi: poetry, software,
Cherokee culture and Native American rights.
http://elohigadugi.org/

Another world is not only possible, she is on her way.
On a quiet day, I can hear her breathing.  - Arundhati Roy
-

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


revMail, revGoURL

2004-12-27 Thread duane poncy
I'm sure I must be doing something stupid, but I am
trying to put an email link in my menu. I have tried
both revMail and revGoURL. Instead of opening my
email program, it opens my browser to an http address
followed by my mailto address. Other links (on
websites, programs, etc.) open correctly, so it's
not my system settings.

I am on a Mac G4 with OSX. Any ideas?

visit elohi gadugi: poetry, software, 
Cherokee culture and Native American rights.
http://elohigadugi.org/


Another world is not only possible, she is on her way. 
On a quiet day, I can hear her breathing.  - Arundhati Roy
-

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Putting Images

2004-12-27 Thread Chipp Walters
try this:
put img "myImageNumber3" of card "CardFullOfImages" into img "myImage"
-Chipp
Paul Salyers wrote:

How do I get a card to pull up a image from my image card. The image 
card has 12 images, but I want be able to pull any  image into a 
different card when wanted.

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 12/22/2004
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Arrow keys on background list field

2004-12-27 Thread Paul Salyers

How do I get a card to pull up a image from my image card. The image card 
has 12 images, but I want be able to pull any  image into a different card 
when wanted.

Paul Salyers
PS1 - Senior Rep.
[EMAIL PROTECTED]
http://ps1.softseven.org 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Arrow keys on background list field

2004-12-27 Thread duane poncy
I need some help on my Cherokee Dictionary project. 
I have my entries on separate cards and a scroll list
field of dictionary entries on a background group.
Everything works fine when I use my find field or
when i click on the entry directly. The problem comes 
when I try to use the arrow keys to move up or down
on the list. I am guessing that is because each time
I change my selection I am moving to a new card. 
I have tried to change the hilighted line
on the new card with a handler, but this doesn't
seem to work either.

Also, the arrow key seems to bring up the last
card I was on, instead of the next card on the list.
Sometimes it even brings up the Rev Documentation
stack if I've been using that recently.

Thanks for any help you can give me!



visit elohi gadugi: poetry, software, 
Cherokee culture and Native American rights.
http://elohigadugi.org/


Another world is not only possible, she is on her way. 
On a quiet day, I can hear her breathing.  - Arundhati Roy
-

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: identify broken images

2004-12-27 Thread Claus Dreischer
Hi,
Have you tried the size property on the image ?
if the size of image "im_1" =  0 then ...
Thierry

Hi Thierry,
yes, i tried it now:  :-(  doesn't work either.
Thanks for the answer,
Claus.
--
--
http://www.danasoft.com/sig/dsagsdg.jpg
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: identify broken images

2004-12-27 Thread Thierry Arbellot
On Monday, Dec 27, 2004, at 13:17 Europe/Paris, Klaus Major wrote:
Bonjour Thierry,
Guten Tag Klaus,

Hi,
Have you tried the size property on the image ?
if the size of image "im_1" =  0 then ...
c'est merveilleux
Great idea, works fine, thanks a lot!!!
Although i am the other Klaus (with a "K") i appreciate this nice and 
clean solution, too ;-)
This is my Christmas present for you ;-)
Au revoir
Auf Wiedersehen
Thierry
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: identify broken images

2004-12-27 Thread Klaus Major
Bon jour Thierry,
Hi,
Have you tried the size property on the image ?
if the size of image "im_1" =  0 then ...
c'est merveilleux
Great idea, works fine, thanks a lot!!!
Although i am the other Klaus (with a "K") i appreciate this nice and 
clean solution, too ;-)

Thierry
Au revoir
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: identify broken images

2004-12-27 Thread Thierry Arbellot
Hi,
Have you tried the size property on the image ?
if the size of image "im_1" =  0 then ...
Thierry
On Monday, Dec 27, 2004, at 00:11 Europe/Paris, Claus Dreischer wrote:
Hi,
i have a small problem i don't see a simple solution for.
Maybe someone here has one.
I want to display JPGs from file, so i make a
put URL ("binfile:" & my_file) into image "im_1"
This is working OK.
But when the JPG in the filepath my_file is faulty (broken download or 
something)
The above line displays an empty image "im_1".

I now want to identify these faulty images.
I tried the following with no result:
if the imagedata of image "im_1" is not empty then ...
if image "im_1" is not empty then ...
if the length of image "im_1" > 0 then ...
Has anyone an idea how to identify an "empty" image?
(its not realy empty but nothing is displayed)
Regards,
Claus.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: identify broken images

2004-12-27 Thread Klaus Major
Hi Claus,
alles frisch? :-)
Hi,
i have a small problem i don't see a simple solution for.
Maybe someone here has one.
I want to display JPGs from file, so i make a
put URL ("binfile:" & my_file) into image "im_1"
This is working OK.
But when the JPG in the filepath my_file is faulty (broken download or 
something)
The above line displays an empty image "im_1".

I now want to identify these faulty images.
I tried the following with no result:
if the imagedata of image "im_1" is not empty then ...
if image "im_1" is not empty then ...
if the length of image "im_1" > 0 then ...
Has anyone an idea how to identify an "empty" image?
(its not realy empty but nothing is displayed)
I don't think there is a built-in solution for this problem...
A long time ago i godzillad this issue, since you even can:
set the filename of img 1 to "../folder/word.DOC"
without problem, the result is empty!
...and you end with a lovely grey image :-(
But somehow the RR crew did not (want to?) understand this issue and 
closed it!!!

See bug 762, marked as "Resolved/Not a bug"...
And the workaround does NOT work!
The formattedheight/-width does NOT report 0!
(But sometimes i am NOT in the mood to "fight for my right to 
prty!" :-)

There may be a chance to use Trevor's QuickTime External to check if QT 
can open that file
but that may not help, if you are on *NIX or cannot use QT for whatever 
reason...

Sorry for the bad news...
Regards,
Claus.
Best
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: resize in browse mode

2004-12-27 Thread Bob Hartley
On 27/12/2004 11:11:33, How to use Revolution 
(use-revolution@lists.runrev.com) wrote:
> At 08:51 27/12/2004, you wrote:

OK the formatting of this mail went askew should be
> >Hi Ken and others
> >
> >This works partly
>
>
> Ahh now Ken, I misunderstood you regarding the writable nature of the
> field.
>
> I thought that you meant
> "would the field be written to in future and then
> resized". Well yes
> written to and NO not intended to be resized, however,
> the solution you gave is actually better than I had envisaged so I'll stick
> with this
>
> I can move the field and resize it empty but only resize it when written to.
>
> I can have this as a "feature" :-) IE the user makes the template and
> clones this per data entry. They cannot move the fields once the template
> has been created, BUT can slightly resize them to tweak the look of
> individual records.
>
etc
cheers
bob
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: resize in browse mode

2004-12-27 Thread Bob Hartley
At 08:51 27/12/2004, you wrote:
Hi Ken and others
This works partly

Ahh now Ken, I misunderstood you regarding the writable nature of the field.
I thought that you meant "would the field be written to in future and then 
resized". Well yes written to and NO not intended to be resized, however, 
the solution you gave is actually better than I had envisaged so I'll stick 
with this

I can move the field and resize it empty but only resize it when written to.
I can have this as a "feature" :-) IE the user makes the template and 
clones this per data entry. They cannot move the fields once the template 
has been created, BUT can slightly resize them to tweak the look of 
individual records.

I'm off for a break until the 5th Jan to www.burghead.com  and will get 
into it on return. While I'm up there I will finalise the plan of the 
application.

You have been a great help.
All the best
Bob
Here's an example of the first:
on mouseStillDown
  if the optionKey is down then
put the rect of me into tRect
put the mouseH into item 3 of tRect
put the mouseV into item 4 of tRect
set the rect of me to tRect
  end if
end mouseStillDown
on mouseWithin
  if the optionKey is down then
if the lockText of me is false then
  set the lockText of me to true
end if
  else
if the lockText of me is true then
  set the lockText of me to false
end if
  end if
end mouseWithin
Does this work for you?

Almost.
It works for the action I saught but it now stops the earlier grab action 
to move the field with control held (It will resize with alt)

The full ascript is
on mouseDown
   if the controlKey is down then
 grab me
 end if
end mouseDown
  if the optionKey is down then
put the rect of me into tRect
put the mouseH into item 3 of tRect
put the mouseV into item 4 of tRect
set the rect of me to tRect
  end if
end mouseStillDown
on mouseWithin
  if the optionKey is down then
if the lockText of me is false then
  set the lockText of me to true
end if
  else
if the lockText of me is true then
  set the lockText of me to false
end if
  end if
end mouseWithin
cheers
bob

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: resize in browse mode

2004-12-27 Thread Bob Hartley
Hi Ken and others
This works partly
Ah, that's the problem. In order to trap the mouse going down, you'll need
to do one of the following:
1) Temporarily lock the field by trapping the "mouseWithin" of the field,
checking for the state of the alt (option) key and then unlocking the field
when the mouse has been released (or moved out of the field); or
2) Create a separate object at the lower-right corner of the open field
(perhaps a transparent button) that can act as a "resizer". This object
would move along with the field as it is resized.
Here's an example of the first:
on mouseStillDown
  if the optionKey is down then
put the rect of me into tRect
put the mouseH into item 3 of tRect
put the mouseV into item 4 of tRect
set the rect of me to tRect
  end if
end mouseStillDown
on mouseWithin
  if the optionKey is down then
if the lockText of me is false then
  set the lockText of me to true
end if
  else
if the lockText of me is true then
  set the lockText of me to false
end if
  end if
end mouseWithin
Does this work for you?

Almost.
It works for the action I saught but it now stops the earlier grab action 
to move the field with control held (It will resize with alt)

The full ascript is
on mouseDown
   if the controlKey is down then
 grab me
 end if
end mouseDown
  if the optionKey is down then
put the rect of me into tRect
put the mouseH into item 3 of tRect
put the mouseV into item 4 of tRect
set the rect of me to tRect
  end if
end mouseStillDown
on mouseWithin
  if the optionKey is down then
if the lockText of me is false then
  set the lockText of me to true
end if
  else
if the lockText of me is true then
  set the lockText of me to false
end if
  end if
end mouseWithin
cheers
bob

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution