Re: How do I select text in a field?

2006-01-09 Thread Dan Soneson

This command does not work in the Message Box, apparently since the
message box entry field retains the focus. However, when you create a
button with only this command in the mouseUp handler it ought to work
just fine. Are you doing other things with your button script that might
get in the way?

Dan



Curiousthis works here. You don't have an 'on openField' or some
other handler that might interfere?


Mark

On 9 Jan 2006, at 01:42, Bill Vlahos wrote:


I want to programatically select text in a field as if I had
doubleclicked it. For example... I want to select word 4 of a field.

When I enter the following statement in the Message Box or in a
button:

select word 4 of field one

The insertion point flashes in the field and the focus border
flashes but no text is selected. How do I do this?

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


How do I select text in a field?

2006-01-08 Thread Bill Vlahos
I want to programatically select text in a field as if I had 
doubleclicked it. For example... I want to select word 4 of a field.


When I enter the following statement in the Message Box or in a button:

select word 4 of field one

The insertion point flashes in the field and the focus border flashes 
but no text is selected. How do I do this?


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: How do I select text in a field?

2006-01-08 Thread Mark Smith
Curiousthis works here. You don't have an 'on openField' or some  
other handler that might interfere?



Mark

On 9 Jan 2006, at 01:42, Bill Vlahos wrote:

I want to programatically select text in a field as if I had  
doubleclicked it. For example... I want to select word 4 of a field.


When I enter the following statement in the Message Box or in a  
button:


select word 4 of field one

The insertion point flashes in the field and the focus border  
flashes but no text is selected. How do I do this?


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


Re: How Do I Select Text in a Field?

2004-03-15 Thread Sarah Reichelt
The field displays the contents of a file selected from a list field. 
This list is refreshed (because files are being added to the storage 
folder at random intervals) with the following button script:

on mouseUp
  getFiles - checks the contents of the storage folder and puts the 
list in the list field
  send mouseUp to me in 60 seconds - so I click the button once and it 
runs all day :)
end mouseUp

Could this activity be causing the text to be deselected? Is there a 
better way to time a repeating task to allow for normal stack 
operation?

Yes - if you are putting a new list into the field every minute, 
whenever that new data is put into the field, your selection will be 
lost. If it is a list field, then the easiest way to go is to store the 
hilitedLines at the start of the mouseUp and reset them at the end. If 
it is not a list field, you will have to store the selectedChunk and 
then select it at the end.

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


Re: How Do I Select Text in a Field?

2004-03-12 Thread Gardner, Joseph A
Ken, the field is a plain scrolling field with a vertical scroll bar. The following 
Basic Properties are checked:

Visible, Don't wrap, Opaque, Focusable, Show border (Border width 2), Hilites: 
Autohilite text

Text is Courier 12 point left justified

The field displays the contents of a file selected from a list field. This list is 
refreshed (because files are being added to the storage folder at random intervals) 
with the following button script:

on mouseUp
  getFiles - checks the contents of the storage folder and puts the list in the list 
field
  send mouseUp to me in 60 seconds - so I click the button once and it runs all day :)
end mouseUp

Could this activity be causing the text to be deselected? Is there a better way to 
time a repeating task to allow for normal stack operation?

Appreciate the great help!

joe.


Ken said:


  I know I'm missing something simple here...
  
  I have a very simple field that contains text. lockText is false and
  traversalOn is true. But when I select any text in the field it doesn't stay
  selected. 
 --
 What kind of field is it? I can't reproduce this situation, i.e., text
 always selects ok unless traversalon is false or locktext is true or hilite
 text is false, 
 
 Ken N.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How Do I Select Text in a Field?

2004-03-12 Thread Jim MacConnell
Joe,

Just a hunch but why don't you try
send getFiles to me in 60 seconds
Instead of send mouseUp

Could be between any mouse events by you and the ato mouse events, the
field looses track of what is where.

Jim


 From: Gardner, Joseph A [EMAIL PROTECTED]
 Reply-To: How to use Revolution [EMAIL PROTECTED]
 Date: Fri, 12 Mar 2004 08:45:42 +0900
 To: [EMAIL PROTECTED]
 Subject: Re: How Do I Select Text in a Field?
 
 on mouseUp
 getFiles - checks the contents of the storage folder and puts the list in the
 list field
 send mouseUp to me in 60 seconds - so I click the button once and it runs all
 day :)
 end mouseUp

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


How Do I Select Text in a Field?

2004-03-11 Thread Gardner, Joseph A
I know I'm missing something simple here...

I have a very simple field that contains text. lockText is false and traversalOn is 
true. But when I select any text in the field it doesn't stay selected. The 
highlighted text immediately reverts to unselected text and the cursor moves to the 
top left corner of the field (before the first character) when I release the mouse. Is 
there any other property that I need to set to allow text selection?

joe.

p.s. Rev 2.1.2, OS X



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


Re: How Do I Select Text in a Field?

2004-03-11 Thread Sarah Reichelt
It looks like some other handler is changing the selection after you 
make it. Open up the Message Watcher, select your text and see what 
messages are being triggered and acted on.

Sarah

I have a very simple field that contains text. lockText is false and 
traversalOn is true. But when I select any text in the field it 
doesn't stay selected. The highlighted text immediately reverts to 
unselected text and the cursor moves to the top left corner of the 
field (before the first character) when I release the mouse. Is there 
any other property that I need to set to allow text selection?

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