No Subject

2002-02-17 Thread Stgecft

Fields have the "Shared tex on each card" property to control letting you 
enter different text in the same field of different cards. How do I get my 
check box buttons to act independently on new pages of the same background.

In order to get them to copy over when "New Card" is sellect, they have been 
grouped and their background behavior is set to true.  Should I be grouping 
these buttons and asking in the script for them to e coped and pasted on the 
new card?  

How about a little help?

Randy Kent
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: button behavior

2002-02-17 Thread Kevin Miller

On 17/2/02 1:57 pm, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> Fields have the "Shared tex on each card" property to control letting you
> enter different text in the same field of different cards. How do I get my
> check box buttons to act independently on new pages of the same background.
> 
> In order to get them to copy over when "New Card" is sellect, they have been
> grouped and their background behavior is set to true.  Should I be grouping
> these buttons and asking in the script for them to e coped and pasted on the
> new card?  
> 
> How about a little help?

Ensure that the checkbox "Share hilite on each card" in the button
properties palette is not checked.

Kevin

Kevin Miller <[EMAIL PROTECTED]> 
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



deslecting the line tool

2002-02-17 Thread Mike Brown

Good Morning,

I have a question regarding the selection and deselection of the line too.
I have a button with this script:

on mouseup
  set the tool to "line tool"
end mouseup

That sets my pointer to the line drawing tool, but I cant find a script or
method to switch back to a pointer or browse tool.  When I placed a script
in another button to set the pointer to the browse tool, it doesn't work.
The line tool just draws a dot or line on top of the button.  Any
recommendations?

Thanks,
Mike

Mike Brown
Cyber-NY Interactive
34 East 23rd Street
New York, NY 10010

Phone: 212-475-2721
Toll Free: 1-888-70-CYBER
Web: www.cyber-ny.com


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: deslecting the line tool

2002-02-17 Thread Ian Summerfield

On 17/2/02 2:27 pm, "Mike Brown" <[EMAIL PROTECTED]> scribed:

> Good Morning,
> 
> I have a question regarding the selection and deselection of the line too.
> I have a button with this script:
> 
> on mouseup
> set the tool to "line tool"
> end mouseup
> 
> That sets my pointer to the line drawing tool, but I cant find a script or
> method to switch back to a pointer or browse tool.  When I placed a script
> in another button to set the pointer to the browse tool, it doesn't work.
> The line tool just draws a dot or line on top of the button.  Any
> recommendations?
> 

I thought you had to use:

Choose line tool
Choose browse tool

You can "get the tool" but I'm not sure you can "set the tool"

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: deslecting the line tool

2002-02-17 Thread Ian Summerfield

On 17/2/02 2:27 pm, "Mike Brown" <[EMAIL PROTECTED]> scribed:

> Good Morning,
> 
> I have a question regarding the selection and deselection of the line too.
> I have a button with this script:
> 
> on mouseup
> set the tool to "line tool"
> end mouseup
> 
> That sets my pointer to the line drawing tool, but I cant find a script or
> method to switch back to a pointer or browse tool.  When I placed a script
> in another button to set the pointer to the browse tool, it doesn't work.
> The line tool just draws a dot or line on top of the button.  Any
> recommendations?

Another thought,  you can't click at the location of a card button with the
paint tool selected, doing so would only draw a dot,  it's only the browse
tool that could click a button.   So if you're trying to have a script or
the use click a button to go back to the browse tool which the line tool is
selected you simply can't.   If it's script then send mouseup instead of
clicking the button. If you've fallen to an idle state letting the user do
some free form painting and want them to change the tool back by clicking a
button you could try having your browse tool button set the tool back to
browse tool by using the mousewithin,  if you save the current tool, set to
browse tool, then I think the user will be able to click the button,  if the
button isn't clicked then a mouseleave could restore the saved tool.  OR you
could just have some kind of idle handler set back to browse tool, or a
delayed send do it before giving the user control.   Does this make sense?

-i-

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: deslecting the line tool

2002-02-17 Thread Mike Brown

Hi Ian,

Thanks for the suggestions.  I had already attempted most of the examples in
the Transcript Dictionary.  MouseWithin, MouseEnter, Send MouseUp... none of
these handlers work while the line tool is selected.  I just now tried again
and still am not having any luck.  I am looking for a behavior similar to
the Rev Tools palette.  I am also looking for any examples in the Rev
Documentation.

Thanks,
Mike

>> I have a question regarding the selection and deselection of the line too.
>> I have a button with this script:
>> 
>> on mouseup
>> set the tool to "line tool"
>> end mouseup
>> 
>> That sets my pointer to the line drawing tool, but I cant find a script or
>> method to switch back to a pointer or browse tool.  When I placed a script
>> in another button to set the pointer to the browse tool, it doesn't work.
>> The line tool just draws a dot or line on top of the button.  Any
>> recommendations?
> 
> Another thought,  you can't click at the location of a card button with the
> paint tool selected, doing so would only draw a dot,  it's only the browse
> tool that could click a button.   So if you're trying to have a script or
> the use click a button to go back to the browse tool which the line tool is
> selected you simply can't.   If it's script then send mouseup instead of
> clicking the button. If you've fallen to an idle state letting the user do
> some free form painting and want them to change the tool back by clicking a
> button you could try having your browse tool button set the tool back to
> browse tool by using the mousewithin,  if you save the current tool, set to
> browse tool, then I think the user will be able to click the button,  if the
> button isn't clicked then a mouseleave could restore the saved tool.  OR you
> could just have some kind of idle handler set back to browse tool, or a
> delayed send do it before giving the user control.   Does this make sense?
> 
> -i-
> 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Scrollbar

2002-02-17 Thread François Cuneo

Hello!
I have to write tomorrow a press review about Revolution. It's a good
product, but how is it possible to send the value of a scrollbar to a field
I have tested
Put the value of scrollbar "myscrollbar" into cd fld "myfield"
And it don't works.
Thank you for your answer
Friendly
François
--

François Cuneo
Au Champ du Pré
1353 Bofflens

e-mail: mailto:[EMAIL PROTECTED]

Web Cuk New Technologies, programmes éducatifs pour Mac: http://www.cuk.ch
Web CUK, humeurs et tests sur le mac: http://www.cuk.ch/articles

Tél: ++41 (024) 441.17.81
Fax: ++41 (024) 441.17.05



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Scrollbar

2002-02-17 Thread Klaus Major

Hi François,


> Hello!
> I have to write tomorrow a press review about Revolution. It's a good
> product, but how is it possible to send the value of a scrollbar to a 
> field
> I have tested
> Put the value of scrollbar "myscrollbar" into cd fld "myfield"

put the thumbpos of sb "yourscrollbar" into fld "yourfield"

That's the name of the property you need to query.

> And it don't works.

Now it will ;-)

> Thank you for your answer

You are welcome :-)

> Friendly
> François

Regards

Klaus Major
[EMAIL PROTECTED]

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Scrollbar

2002-02-17 Thread Mike Brown

Try

on scrollbarDrag
  put the thumbposition of me into fld "yourfld"
end scrollbarDrag

on 2/17/02 10:51 AM, François Cuneo at [EMAIL PROTECTED] wrote:

> Hello!
> I have to write tomorrow a press review about Revolution. It's a good
> product, but how is it possible to send the value of a scrollbar to a field
> I have tested
> Put the value of scrollbar "myscrollbar" into cd fld "myfield"
> And it don't works.
> Thank you for your answer
> Friendly
> François
> --
> 
> François Cuneo
> Au Champ du Pré
> 1353 Bofflens
> 
> e-mail: mailto:[EMAIL PROTECTED]
> 
> Web Cuk New Technologies, programmes éducatifs pour Mac: http://www.cuk.ch
> Web CUK, humeurs et tests sur le mac: http://www.cuk.ch/articles
> 
> Tél: ++41 (024) 441.17.81
> Fax: ++41 (024) 441.17.05
> 
> 
> 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

Mike Brown
Creative Director / Partner
Cyber-NY Interactive
34 East 23rd Street
New York, NY 10010

Phone: 212-475-2721
Toll Free: 1-888-70-CYBER
Web: www.cyber-ny.com


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Scrollbar

2002-02-17 Thread François Cuneo

> Try
> 
> on scrollbarDrag
> put the thumbposition of me into fld "yourfld"
> end scrollbarDrag
> 
> on 2/17/02 10:51 AM, François Cuneo at [EMAIL PROTECTED] wrote:
> 
>> Hello!
>> I have to write tomorrow a press review about Revolution. It's a good
>> product, but how is it possible to send the value of a scrollbar to a field
>> I have tested
>> Put the value of scrollbar "myscrollbar" into cd fld "myfield"
>> And it don't works.
>> Thank you for your answer
>> Friendly
>> François
>> ---
> 
> 
Thank you!
But now, I want to make only 3 positions (1, 2 and 3)
I have tried 1 for increment on clicking Arrow
And 1 for increment on clicking scollbar

It works but only wiht clic (it's usual). But when we drag the scroll, the
position can be anywhere.
I think that I may write "if thumbposition of me > 1.5, then th
thumbposition of me is 2
But is it something more simple?

And what is the utility of the "show value"??? It showes nothing in fact!

Thank you again
Bye
François

--

François Cuneo
Au Champ du Pré
1353 Bofflens

e-mail: mailto:[EMAIL PROTECTED]

Web Cuk New Technologies, programmes éducatifs pour Mac: http://www.cuk.ch
Web CUK, humeurs et tests sur le mac: http://www.cuk.ch/articles

Tél: ++41 (024) 441.17.81
Fax: ++41 (024) 441.17.05



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Just bevore the review, and before I write idiociesŠ

2002-02-17 Thread François Cuneo

Hello!
It's me again!
As I have said before, I will put online a review about Revolution,
I have written with SuperCard, HyperCard and finally RealBasic.
All these products where good.
Revolution is Fantastic but for me, the documentation is not so good as the
product. The tutorials are very fine, but the big documentation is missing.
I try to find something in PDF, very big and complete. Exist it before I
write some idiocies?
Why is it impossible to find some interesting things by example about the
scrollbars in the documentation? Where can I find how works the "Script
Debug Mode?"
I know, the mailing list is useful for all that, but a good documentation
for a good product is good too.
Thank you for your answer.
Friendly
François

--

François Cuneo
Au Champ du Pré
1353 Bofflens

e-mail: mailto:[EMAIL PROTECTED]

Web Cuk New Technologies, programmes éducatifs pour Mac: http://www.cuk.ch
Web CUK, humeurs et tests sur le mac: http://www.cuk.ch/articles

Tél: ++41 (024) 441.17.81
Fax: ++41 (024) 441.17.05



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: deslecting the line tool

2002-02-17 Thread Kevin Miller

On 17/2/02 3:35 pm, Mike Brown <[EMAIL PROTECTED]> wrote:

> Thanks for the suggestions.  I had already attempted most of the examples in
> the Transcript Dictionary.  MouseWithin, MouseEnter, Send MouseUp... none of
> these handlers work while the line tool is selected.  I just now tried again
> and still am not having any luck.  I am looking for a behavior similar to
> the Rev Tools palette.  I am also looking for any examples in the Rev
> Documentation.

The tools palette is a separate stack in palette mode, so isn't subject to
the current tool setting.

Kevin

Kevin Miller <[EMAIL PROTECTED]> 
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Scrollbar

2002-02-17 Thread Klaus Major

Bonsoir François,

>> Try
>>
>> on scrollbarDrag
>> put the thumbposition of me into fld "yourfld"
>> end scrollbarDrag
>>
>> on 2/17/02 10:51 AM, François Cuneo at [EMAIL PROTECTED] wrote:
>>
>>> Hello!
>>> I have to write tomorrow a press review about Revolution. It's a good
>>> product, but how is it possible to send the value of a scrollbar to a 
>>> field
>>> I have tested
>>> Put the value of scrollbar "myscrollbar" into cd fld "myfield"
>>> And it don't works.
>>> Thank you for your answer
>>> Friendly
>>> François
>>> ---
>>
>>
> Thank you!
> But now, I want to make only 3 positions (1, 2 and 3)
> I have tried 1 for increment on clicking Arrow
> And 1 for increment on clicking scollbar
>
> It works but only wiht clic (it's usual). But when we drag the scroll, 
> the
> position can be anywhere.

Don't panic ;-)

It is just the name "thumbposition" that is a bit misleading.

Although it sounds like that property describes the actual position of 
the
thumb in pixels, it IS in fact the "currently selected" value.

So the following lines are not necessary:

> I think that I may write "if thumbposition of me > 1.5, then th
> thumbposition of me is 2

> But is it something more simple?

See above.
>
> And what is the utility of the "show value"??? It showes nothing in 
> fact!

Just drag the scrollbar "bigger" until the value appears under the 
scrollbar...

>
> Thank you again

You are welcome :-)

> Bye
> François

Au revoir

Klaus Major
[EMAIL PROTECTED]

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Happily debugging now

2002-02-17 Thread JohnRule

Thank you Kevin...that is exactly what I was looking for!

JR


In a message dated 2/17/02 1:15:45 PM Atlantic Standard Time, [EMAIL PROTECTED] writes:


Use the "breakpoint" command.  The debugger must be open before you send the
message that runs the script though.  Also, if the stack is not toplevel or
is a Revolution stack, you may need to open the message box (after opening
the debugger) and run:

set the traceStack to the mouseStack

To force the debugger to "watch" that stack before starting to run.

Kind regards,

Kevin




Re: Scrollbar

2002-02-17 Thread François Cuneo

> Bonsoir François,
> 
Guten Abend Klaus!
Danke!
Merci
> 
> Don't panic ;-)
> 
> It is just the name "thumbposition" that is a bit misleading.
> 
> Although it sounds like that property describes the actual position of
> the
> thumb in pixels, it IS in fact the "currently selected" value.
> 
> So the following lines are not necessary:
> 
>> I think that I may write "if thumbposition of me > 1.5, then th
>> thumbposition of me is 2
> 
>> But is it something more simple?
> 
> See above.
No, I don't see, I think you don't understand what I mean: I use a scrollbar
in fact a scale. I want that only three positions are possible.
You see? Like a switch with the sound "clic-clic-clic" each time that a
position is passed.

So how is it possible
>> 
> 
> Just drag the scrollbar "bigger" until the value appears under the
> scrollbar...
OK! I'm a little stupid! :=)
> 
>> 
>> Thank you again
> 
> Au revoir
Auf wiedersehn!
> Klaus Major
> [EMAIL PROTECTED]
> 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

--

François Cuneo
Au Champ du Pré
1353 Bofflens

e-mail: mailto:[EMAIL PROTECTED]

Web Cuk New Technologies, programmes éducatifs pour Mac: http://www.cuk.ch
Web CUK, humeurs et tests sur le mac: http://www.cuk.ch/articles

Tél: ++41 (024) 441.17.81
Fax: ++41 (024) 441.17.05



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Just bevore the review, and before I write idiocies

2002-02-17 Thread Geoff Canyon

At 6:09 PM +0100 2/17/02, François Cuneo wrote:
>I try to find something in PDF, very big and complete. Exist it before I
>write some idiocies?

The RTFer stack can make this for you. It is not a product of RunRev; I created it 
because people were looking for printed documentation.

It is available at 

It will export the entire online documentation, to an RTF file you can open in 
Microsoft Word or AppleWorks. Note that it is 2800 pages long! Several people have 
pointed out that it doesn't have page numbers, so be aware of that.

It can also export a single text file, or a set of a few thousand HTML files, complete 
with cross-referenced hyperlinks.

If you have any questions or need any help, feel free to contact me directly.

regards,

Geoff
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Scrollbar

2002-02-17 Thread Roger . E . Eller


> No, I don't see, I think you don't understand what I mean: I use a
scrollbar
> in fact a scale. I want that only three positions are possible.
> You see? Like a switch with the sound "clic-clic-clic" each time that a
> position is passed.
>
> So how is it possible
>>>
>>
>> Just drag the scrollbar "bigger" until the value appears under the
>> scrollbar...
> OK! I'm a little stupid! :=)

I could not do it either... exactly, so this was my attempt.
In the properties of the scrollbar, I set the Start Value to 1 and the End
Value to 3.
No matter what, the arrow that indicates thumbPosition did not "snap" to
the absolute position of 1, 2, or 3.
So I made a Plus and Minus button which contained this script

on mouseUp
  if the name of me = "+" then
   set the thumbPosition of sb "SB1" to (the thumbPosition of sb "SB1")
+1
else
   set the thumbPosition of sb "SB1" to (the thumbPosition of sb "SB1")
-1
  end if
end mouseUp

That works, but not when dragging the actual arrow of the Scrollbar.

~Roger Eller  <[EMAIL PROTECTED]>



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Hierarchical File/Directory Structure Code

2002-02-17 Thread Sivakatirswami

Has anyone produced a "finder like" (Mac) interface for directories and
files on disk?

I know we have Synder's tree and Altuit' XML  tools but wondering is anyone
has built this already to

a) read a volume
b) put up a list in a field of the directories and files
c) have "drop down" arrows that will expand to next level etc.?

i.e. I need to have a dynamic file selection ability "inside" MC/Rev (with a
Mac look and feel to it)

Hinduism Today

Sivakatirswami
Editor's Assistant/Production Manager
[EMAIL PROTECTED] 
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org

Read The Master Course Lesson of the Day at
http://www.gurudeva.org/lesson.shtml

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Scrollbar

2002-02-17 Thread Ken Ray

The closest I can come to what you want is:

set the style of sb 1 to "scale"
set the startValue of sb 1 to 1
set the endValue of sb 1 to 3
set the thumbSize of sb 1 to 1
set the pageInc of sb 1 to 2
set the lineInc of sb 1 to 1  -- this is ignored in scales though

The scrollbar has this script:

on scrollbarDrag
  set the thumbPos of me to (the thumbpos of me)
end scrollbarDrag

This sort of "snaps" to the proper thumbpositions, but it flickers as it's
doing so. I'll keep hunting for a better solution, but it would be great if
Rev had a "snapToPage" property (or equivalent) that would take the
flickering away.

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

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 17, 2002 2:32 PM
Subject: Re: Scrollbar


>
> > No, I don't see, I think you don't understand what I mean: I use a
> scrollbar
> > in fact a scale. I want that only three positions are possible.
> > You see? Like a switch with the sound "clic-clic-clic" each time that a
> > position is passed.
> >
> > So how is it possible
> >>>
> >>
> >> Just drag the scrollbar "bigger" until the value appears under the
> >> scrollbar...
> > OK! I'm a little stupid! :=)
>
> I could not do it either... exactly, so this was my attempt.
> In the properties of the scrollbar, I set the Start Value to 1 and the End
> Value to 3.
> No matter what, the arrow that indicates thumbPosition did not "snap" to
> the absolute position of 1, 2, or 3.
> So I made a Plus and Minus button which contained this script
>
> on mouseUp
>   if the name of me = "+" then
>set the thumbPosition of sb "SB1" to (the thumbPosition of sb
"SB1")
> +1
> else
>set the thumbPosition of sb "SB1" to (the thumbPosition of sb
"SB1")
> -1
>   end if
> end mouseUp
>
> That works, but not when dragging the actual arrow of the Scrollbar.
>
> ~Roger Eller  <[EMAIL PROTECTED]>
>
>
>
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Just bevore the review, and before I write idiocies

2002-02-17 Thread François Cuneo

> At 6:09 PM +0100 2/17/02, François Cuneo wrote:
>> I try to find something in PDF, very big and complete. Exist it before I
>> write some idiocies?
> 
> The RTFer stack can make this for you. It is not a product of RunRev; I
> created it because people were looking for printed documentation.
> 
> It is available at 
> 
> It will export the entire online documentation, to an RTF file you can open in
> Microsoft Word or AppleWorks. Note that it is 2800 pages long! Several people
> have pointed out that it doesn't have page numbers, so be aware of that.
> 
> It can also export a single text file, or a set of a few thousand HTML files,
> complete with cross-referenced hyperlinks.
> 
> If you have any questions or need any help, feel free to contact me directly.
> 
> regards,
> 
> Geoff
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

Thank you! I will try this export.
--

François Cuneo
Au Champ du Pré
1353 Bofflens

e-mail: mailto:[EMAIL PROTECTED]

Web Cuk New Technologies, programmes éducatifs pour Mac: http://www.cuk.ch
Web CUK, humeurs et tests sur le mac: http://www.cuk.ch/articles

Tél: ++41 (024) 441.17.81
Fax: ++41 (024) 441.17.05



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Scrollbar

2002-02-17 Thread François Cuneo

> 
>> No, I don't see, I think you don't understand what I mean: I use a
> scrollbar
>> in fact a scale. I want that only three positions are possible.
>> You see? Like a switch with the sound "clic-clic-clic" each time that a
>> position is passed.
>> 
>> So how is it possible
 
>>> 
>>> Just drag the scrollbar "bigger" until the value appears under the
>>> scrollbar...
>> OK! I'm a little stupid! :=)
> 
> I could not do it either... exactly, so this was my attempt.
> In the properties of the scrollbar, I set the Start Value to 1 and the End
> Value to 3.
> No matter what, the arrow that indicates thumbPosition did not "snap" to
> the absolute position of 1, 2, or 3.
> So I made a Plus and Minus button which contained this script
> 
> on mouseUp
> if the name of me = "+" then
>  set the thumbPosition of sb "SB1" to (the thumbPosition of sb "SB1")
> +1
>   else
>  set the thumbPosition of sb "SB1" to (the thumbPosition of sb "SB1")
> -1
> end if
> end mouseUp
> 
> That works, but not when dragging the actual arrow of the Scrollbar.
> 
> ~Roger Eller  <[EMAIL PROTECTED]>
So I'm not alone!
Thank you Roger for your answer.
Friendly
François
--

François Cuneo
Au Champ du Pré
1353 Bofflens

e-mail: mailto:[EMAIL PROTECTED]

Web Cuk New Technologies, programmes éducatifs pour Mac: http://www.cuk.ch
Web CUK, humeurs et tests sur le mac: http://www.cuk.ch/articles

Tél: ++41 (024) 441.17.81
Fax: ++41 (024) 441.17.05



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: deslecting the line tool

2002-02-17 Thread David Vaughan

On Monday, February 18, 2002, at 02:35 , Mike Brown wrote:

> Hi Ian,
>
> Thanks for the suggestions.  I had already attempted most of the 
> examples in
> the Transcript Dictionary.  MouseWithin, MouseEnter, Send MouseUp... 
> none of
> these handlers work while the line tool is selected.  I just now tried 
> again
> and still am not having any luck.  I am looking for a behavior similar 
> to
> the Rev Tools palette.  I am also looking for any examples in the Rev
> Documentation.
>
> Thanks,
> Mike
>
>>> I have a question regarding the selection and deselection of the line 
>>> too.
>>> I have a button with this script:
>>>
>>> on mouseup
>>> set the tool to "line tool"
>>> end mouseup
>>>
>>> That sets my pointer to the line drawing tool, but I cant find a 
>>> script or
>>> method to switch back to a pointer or browse tool.  When I placed a 
>>> script
>>> in another button to set the pointer to the browse tool, it doesn't 
>>> work.
>>> The line tool just draws a dot or line on top of the button.  Any
>>> recommendations?
>>
snip

Mike

I don't know if things like the mouseLoc are deprecated but this worked 
as a demonstration, and may do until someone thinks of something better.

The problem appears to be that messages halt (from what I saw) when you 
choose a drawing tool, hence none of the mouse messages (or idle) will 
help. Therefore, we need our own monitor. This is my working demo.

local LmsgID

on mouseUp
   choose line tool
   send "toolMonitor" to me in 500 milliseconds
   put the result into LmsgID
   -- This was a failsafe line used while debugging
   -- send "getOut" to me in 10 seconds
end mouseUp

on toolMonitor
   if within(button "reBrowse",the mouseLoc) then
 getOut
   else
 send "toolMonitor" to me in 500 milliseconds
 put the result into LmsgID
   end if
end toolMonitor

on getOut
   choose Browse tool
   cancel LmsgID
end getOut

regards
David

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Discrete scrollbar settings

2002-02-17 Thread Jim Hurley

>
>on scrollbarDrag
>   set the thumbPos of me to (the thumbpos of me)
>end scrollbarDrag
>
>This sort of "snaps" to the proper thumbpositions, but it flickers as it's
>doing so. I'll keep hunting for a better solution, but it would be great if
>Rev had a "snapToPage" property (or equivalent) that would take the
>flickering away.


I think this might work for you. Set the scrollbar script to:

local temp

on scrollbarDrag
   set startValue  of me to 1
   set endvalue of me to 3
   put  the thumbposition of me into temp
   put round(temp) into temp
end scrollbarDrag

on mouseUp
   if temp   = 1  then set the thumbposition of me to 1
   if temp  = 2 then set the thumbposition of me to 2
   if temp  = 3  then set the thumbposition  me to 3
end mouseUp
-- 
Jim Hurley
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Discrete scrollbar settings

2002-02-17 Thread Jim Hurley

>
>on scrollbarDrag
>   set the thumbPos of me to (the thumbpos of me)
>end scrollbarDrag
>
>This sort of "snaps" to the proper thumbpositions, but it flickers as it's
>doing so. I'll keep hunting for a better solution, but it would be great if
>Rev had a "snapToPage" property (or equivalent) that would take the
>flickering away.


As W. C. Fields would say: "Pardon my redundancy."

Much simpler:

local temp

on scrollbarDrag
   set startValue  of me to 1
   set endvalue of me to 3
   put  the thumbposition of me into temp
   put round(temp) into temp
end scrollbarDrag

on mouseUp
   set the thumbposition of me to temp
end mouseUp
-- 
Jim Hurley
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Hierarchical File/Directory Structure Code

2002-02-17 Thread Shao Sean

i've actually started work on one that looks like the Mac OS X file browser
(the full look and everything).. Mac OS shouldn't be too hard, except for
the fact it has like twenty different views and ways of doing things, so
that could take a bit longer to code all the functionality..

lemme know if you still need this..

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution