selectedChunk always empty?

2010-10-10 Thread Inselfan

Hola,

Using 4.5 
Is there a reason, why selectedChunk is always empty???

using 1 field, place the cursor there and then I klick on a button with this
script:

on mouseUp
 put the selectedChunk into tSelectedChunk 
...
end mouseup

Whatever I do, tSelectedChunk is empty. Is there any reason, Am I doing
something wrong?

hoping for a helpfull hand, I send you kind regards 

Horst
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/selectedChunk-always-empty-tp2970443p2970443.html
Sent from the Revolution - User mailing list archive at Nabble.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: selectedChunk always empty?

2010-10-10 Thread stephen barncard
perhaps you haven't selected a chunk of text in a field? If your field has a
blinking cursor but no selection, that would make the selectedChunk empty,
no?

On 10 October 2010 10:21, Inselfan balearenin...@gmx.net wrote:


 Hola,

 Using 4.5
 Is there a reason, why selectedChunk is always empty???

 using 1 field, place the cursor there and then I klick on a button with
 this
 script:

 on mouseUp
 put the selectedChunk into tSelectedChunk
 ...
 end mouseup

 Whatever I do, tSelectedChunk is empty. Is there any reason, Am I doing
 something wrong?

 hoping for a helpfull hand, I send you kind regards

 Horst
 --
 View this message in context:
 http://runtime-revolution.278305.n4.nabble.com/selectedChunk-always-empty-tp2970443p2970443.html
 Sent from the Revolution - User mailing list archive at Nabble.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




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
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: selectedChunk always empty?

2010-10-10 Thread Inselfan

Hola Stephen,

Thanks for this, but: Yes I have a blinking cursor and YES this
(Selectedchunk) works perfect with the same text-field and another button.
It is really 1:1

Must be something else

Kind regards

Horst
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/selectedChunk-always-empty-tp2970443p2970459.html
Sent from the Revolution - User mailing list archive at Nabble.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: selectedChunk always empty?

2010-10-10 Thread stephen barncard
what is it supposed to return, all of the text in the field?

On 10 October 2010 10:34, Inselfan balearenin...@gmx.net wrote:


 Hola Stephen,

 Thanks for this, but: Yes I have a blinking cursor and YES this
 (Selectedchunk) works perfect with the same text-field and another button.
 It is really 1:1

 Must be something else

 Kind regards

 Horst
 --
 View this message in context:
 http://runtime-revolution.278305.n4.nabble.com/selectedChunk-always-empty-tp2970443p2970459.html
 Sent from the Revolution - User mailing list archive at Nabble.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




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
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: selectedChunk always empty?

2010-10-10 Thread stephen barncard
perhaps you are defeating your selection by clicking a button or using the
message box

this works from the multi-line message box:


*select text of fld Field of card id 1002 of stack Untitled 1*

*put the selectedchunk*



if you put this into the script of a button


*on mousedown*

*  put the selectedChunk*

*end mousedown*

then the selection one makes by hand will remain and the selectedchunk will
be placed in the message box output:

char 1 to 22 of field 1

if the selection is a blinking cursor then the cursor position will be put
into the message box output:

char 23 to 22 of field 1


if neither the selection made by hand or a blinking cursor is happening,
then empty is returned:


On 10 October 2010 10:50, stephen barncard
stephenrevoluti...@barncard.comwrote:

 what is it supposed to return, all of the text in the field?


 On 10 October 2010 10:34, Inselfan balearenin...@gmx.net wrote:


 Hola Stephen,

 Thanks for this, but: Yes I have a blinking cursor and YES this
 (Selectedchunk) works perfect with the same text-field and another button.
 It is really 1:1

 Must be something else

 Kind regards

 Horst
 --
 View this message in context:
 http://runtime-revolution.278305.n4.nabble.com/selectedChunk-always-empty-tp2970443p2970459.html
 Sent from the Revolution - User mailing list archive at Nabble.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




 --



 Stephen Barncard
 San Francisco Ca. USA

 more about sqb  http://www.google.com/profiles/sbarncar




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
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: selectedChunk always empty?

2010-10-10 Thread Ken Ray
 
 Whatever I do, tSelectedChunk is empty. Is there any reason, Am I doing
 something wrong?

Turn off the 'traversalOn' property for the button. When you click it it's
getting the focus and removing it from the field before you can get the
selectedChunk.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
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: selectedChunk always empty?

2010-10-10 Thread Inselfan

Hola Stephen,

Thanks for your helping hand, but all exercises worked fine in the
message-Box but didn't in the btn. So I tried Ken's help. 

But, :( this also didn't help.

The solution was as simple: I created a new button, coppied the
Message-Box-Text and... that works.

I don't understand the miracles behind but that took me the full Sunday 

Once again, thanks Stephen and Ken

time to go to bed now (23.57 p.m.)

Horst
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/selectedChunk-always-empty-tp2970443p2970681.html
Sent from the Revolution - User mailing list archive at Nabble.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