Re: Contextual Menus

2008-07-26 Thread Bill Vlahos
I added the command:	focus on target just before the popup command and  
that mostly works. It doesn't put the insertion point (for pasting)  
where I clicked. Is there a better way to do this?


Bill

On Jul 26, 2008, at 10:18 PM, Bill Vlahos wrote:


Ken,

Thanks. This works.

I have another problem. If I right-click on a field that doesn't  
have the focus, both paste and your select all command won't do it  
to the correct field. It will either paste the clipboard or select  
all in the field that still has the focus (I'm on a Mac).


Bill


On Jul 26, 2008, at 9:41 PM, Ken Ray wrote:





On 7/26/08 6:57 PM, "Bill Vlahos" <[EMAIL PROTECTED]> wrote:


What would be the command for "Select All"?


select the text of the selectedField

But you want to make sure it has a context (i.e. an open field,  
otherwise

you'll get an error since "the selectedField" would return empty):

if the selectedField <> "" then select the text of the selectedField



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


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Contextual Menus

2008-07-26 Thread Bill Vlahos

Ken,

Thanks. This works.

I have another problem. If I right-click on a field that doesn't have  
the focus, both paste and your select all command won't do it to the  
correct field. It will either paste the clipboard or select all in the  
field that still has the focus (I'm on a Mac).


Bill


On Jul 26, 2008, at 9:41 PM, Ken Ray wrote:





On 7/26/08 6:57 PM, "Bill Vlahos" <[EMAIL PROTECTED]> wrote:


What would be the command for "Select All"?


select the text of the selectedField

But you want to make sure it has a context (i.e. an open field,  
otherwise

you'll get an error since "the selectedField" would return empty):

if the selectedField <> "" then select the text of the selectedField



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


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Contextual Menus

2008-07-26 Thread Ken Ray



On 7/26/08 6:57 PM, "Bill Vlahos" <[EMAIL PROTECTED]> wrote:

> What would be the command for "Select All"?

select the text of the selectedField

But you want to make sure it has a context (i.e. an open field, otherwise
you'll get an error since "the selectedField" would return empty):

if the selectedField <> "" then select the text of the selectedField



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


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] StackRunner 1.8.1 Released

2008-07-26 Thread Ken Ray
Hey everyone,

Just a quick announcement that a minor upgrade to StackRunner based on a
suggestion by David Bovill (thanks, David!) - to provide support for the
ability to deploy single-icon applications for OS X by providing access to
and storage of stacks inside the application bundle.

The StackRunner web page (
http://www.sonsothunder.com/devres/revolution/downloads/StackRunner.htm)
provides info and an example on how to utilize this new feature.

Enjoy!

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


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Contextual Menus

2008-07-26 Thread Bill Vlahos

Nope. Doesn't work.

Bill

On Jul 26, 2008, at 5:05 PM, Mark Schonewille wrote:


select all :-)

--
Best regards,

Mark Schonewille

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

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 27 jul 2008, at 01:57, Bill Vlahos wrote:


What would be the command for "Select All"?

Bill Vlahos



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Problem with focusIn and a substack

2008-07-26 Thread Bill Vlahos
I have a field that when a user clicks on it a calendar picker stack  
appears to let the user click on a date. The field is locked to allow  
the mouseUp to work. The script below works fine when the user clicks  
on the field. The date is selected from the popup and put into the  
field.


It is also possible for the user to tab into the field from the  
previous field so I added the focusIn handler. If I uncomment "click  
at the loc of me" the calendar stack shows up but when the user  
selects the date it doesn't go into the field.


How do I get both to work?

on mouseUp
  put "SmallCalendar" into tStackName
  put me into theDate
  put theDate into theOldDate
  convert theDate from short system date to short English date
  put getDate(theDate, tStackName) into theDate
  if theDate is theOldDate then exit to top
  if theDate is "clear" then
put empty into me
  else
convert theDate from short English date to short system date
put theDate into me
  end if
  closeField
end mouseUp

on focusIn
--  click at the loc of me
end focusIn

Bill Vlahos
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Contextual Menus

2008-07-26 Thread Mark Schonewille

select all :-)

--
Best regards,

Mark Schonewille

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

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 27 jul 2008, at 01:57, Bill Vlahos wrote:


What would be the command for "Select All"?

Bill Vlahos



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Contextual Menus

2008-07-26 Thread Bill Vlahos

What would be the command for "Select All"?

Bill Vlahos

On Jul 21, 2008, at 6:45 PM, J. Landman Gay wrote:


J. Landman Gay wrote:

If you just want to operate on the text, you can do things like  
"copy the selection".


Actually (she said, replying to herself) it's even easier than that.  
Rev already knows what's selected, so if you are just using the  
basic editing commands, all you need in a menupick is this:


on menupick pwhich
 switch pwhich
 case "copy"
   copy
   break
 case "paste"
   paste
   break
 case "delete"
   delete
  break
 default
 end switch
end menupick

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Click twice to open drawer?

2008-07-26 Thread william humphrey
They were and are substacks. It was just a weird bug I think.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Click twice to open drawer?

2008-07-26 Thread Éric Miclo

Well, I only use substacks as drawers.
If you don't want to do that you can add the "Consignees" to the  
stacks of the main stack ("File" menu -> "Standalone settings" ->  
"Stacks" or use the full path name of the "Consignees" stack.


Best,

ÉrIC

Le 26 juil. 08 à 19:31, william humphrey a écrit :





As a further note.  If you use this method and the stack to open as a
drawer has never been opened as a drawer it doesn't work until you  
open it

in the application browser first. Then after that this works. Kind of
strange ...



On 7/26/08, Éric Miclo <[EMAIL PROTECTED]> wrote:


Well it seems that it does not work as expected. Use this:

on mouseUp
if "Consignees" is among the lines of the openStacks then close  
stack

"Consignees"
else drawer stack "Consignees" at right
end mouseUp


Le 26 ju






--
http://www.bluewatermaritime.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



-- My NeXT computer will Be a Mac too! --


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Click twice to open drawer?

2008-07-26 Thread Éric Miclo

An even better way to manage the drawer is:

on mouseUp
   if ("Consignees" is among the lines of the openStacks) and (the  
Left of stack "Consignees" > the left of this stack) then -- or right/ 
bottom when drawer is opened at right/bottom

  close stack "Consignees"
  drawer stack "Consignees" at left -- or right/bottom
   else if ("Consignees" is among the lines of the openStacks) then
  close stack "Consignees"
   else
  drawer stack "Consignees" at left -- or right/bottom
   end if
end mouseUp

So the double-click is not needed to reopen the drawer when it has  
been closed manualy.


Best,

ÉrIC

Le 26 juil. 08 à 19:22, william humphrey a écrit :



Thanks that is the ticket. So when I first open the stack the first  
click
that appeared to do nothing was opening the stack and then the  
second click
showing it? Kind of weird. I'm glad there is always another way to  
do it.


On 7/26/08, Éric Miclo <[EMAIL PROTECTED]> wrote:


Well it seems that it does not work as expected. Use this:

on mouseUp
if "Consignees" is among the lines of the openStacks then close stack
"Consignees"
else drawer stack "Consignees" at right
end mouseUp


Le 26 ju

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



-- My NeXT computer will Be a Mac too! --


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Click twice to open drawer?

2008-07-26 Thread william humphrey
>
> As a further note.  If you use this method and the stack to open as a
> drawer has never been opened as a drawer it doesn't work until you open it
> in the application browser first. Then after that this works. Kind of
> strange ...
>

On 7/26/08, Éric Miclo <[EMAIL PROTECTED]> wrote:
>>
>> Well it seems that it does not work as expected. Use this:
>>
>> on mouseUp
>>  if "Consignees" is among the lines of the openStacks then close stack
>> "Consignees"
>>  else drawer stack "Consignees" at right
>> end mouseUp
>>
>>
>> Le 26 ju
>
>


-- 
http://www.bluewatermaritime.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Click twice to open drawer?

2008-07-26 Thread william humphrey
Thanks that is the ticket. So when I first open the stack the first click
that appeared to do nothing was opening the stack and then the second click
showing it? Kind of weird. I'm glad there is always another way to do it.

On 7/26/08, Éric Miclo <[EMAIL PROTECTED]> wrote:
>
> Well it seems that it does not work as expected. Use this:
>
> on mouseUp
>  if "Consignees" is among the lines of the openStacks then close stack
> "Consignees"
>  else drawer stack "Consignees" at right
> end mouseUp
>
>
> Le 26 ju
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: strip chars

2008-07-26 Thread J. Landman Gay

Richard Gaskin wrote:

I hope I didn't give the impression that "repeat for each" is always 
faster than RegEx.


No, not at all.

The trick is finding the precise dividing line, the code complexity/data 
complexity/depth ratio that benefits one method over another.  If there 
was a quantified formula for that it would be handy; anyone have a few 
days available to craft the tests which would give us that ratio? :)




I don't think a ratio can be accurately determined. Every set of data is 
different. It depends not only on how many regex matches there are, but 
the position of each match in every line and in some cases the 
complexity of the match (more complex matches go faster with regex.) It 
is so variable that I would be very surprised if a set of rules could be 
determined.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Click twice to open drawer?

2008-07-26 Thread Éric Miclo

Well it seems that it does not work as expected. Use this:

on mouseUp
  if "Consignees" is among the lines of the openStacks then close  
stack "Consignees"

  else drawer stack "Consignees" at right
end mouseUp


Le 26 juil. 08 à 16:58, william humphrey a écrit :



When I do the following it works as expected except the first time  
right
after you open the stack in that case you have to click the button  
twice for
it to work. The button is on the main stack. What can I do to make  
it so the
button only has to be clicked once the first time. (this is hard to  
test

because you have to close and re-open RunRev to get the click twice
behavior).

On mouseup

 if the visible of stack "Consignees" is true then

   hide stack Consignees

 else

   drawer stack "Consignees" at right

   set visible of stack "Consignees" to true



 end if

end mouseup
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



-- My NeXT computer will Be a Mac too! --


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Click twice to open drawer?

2008-07-26 Thread Éric Miclo

Try this:

on mouseUp
   if "Consignees" is among the lines of the openStacks then close  
stack "Consignees"

   else drawer stack "Consignees" at right of this stack
end mouseUp

Le 26 juil. 08 à 16:58, william humphrey a écrit :



When I do the following it works as expected except the first time  
right
after you open the stack in that case you have to click the button  
twice for
it to work. The button is on the main stack. What can I do to make  
it so the
button only has to be clicked once the first time. (this is hard to  
test

because you have to close and re-open RunRev to get the click twice
behavior).

On mouseup

 if the visible of stack "Consignees" is true then

   hide stack Consignees

 else

   drawer stack "Consignees" at right

   set visible of stack "Consignees" to true



 end if

end mouseup
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



-- My NeXT computer will Be a Mac too! --


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Click twice to open drawer?

2008-07-26 Thread william humphrey
When I do the following it works as expected except the first time right
after you open the stack in that case you have to click the button twice for
it to work. The button is on the main stack. What can I do to make it so the
button only has to be clicked once the first time. (this is hard to test
because you have to close and re-open RunRev to get the click twice
behavior).

On mouseup

  if the visible of stack "Consignees" is true then

hide stack Consignees

  else

drawer stack "Consignees" at right

set visible of stack "Consignees" to true



  end if

end mouseup
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution