Re: Focus question

2011-06-24 Thread Bill Vlahos
Sims,

It does do that but I don't want it to float above everything.

Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.

On Jun 23, 2011, at 9:03 PM, Jim Sims wrote:

> 
> On Jun 24, 2011, at 1:16 AM, Bill Vlahos wrote:
> 
>> Is there a way to kick my app to the front? I even tried to run an 
>> AppleScript to active the program but that doesn't work either.
> 
> Does systemWindow do what you want?
> 
> 
> sims
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Focus question

2011-06-24 Thread Bill Vlahos
Terry,

Good suggestion.

Thank you,
Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.

On Jun 23, 2011, at 4:54 PM, Terry Judd wrote:

> On 24/06/2011 09:16 AM, "Bill Vlahos"  wrote:
> 
>> I figured out what the problem is but I can't figure out a workaround.
>> 
>> I call an applescript embedded in a field on the preOpenCard Card script.
>>   do field "blahblah" as applescript
>> 
>> Is there a way to kick my app to the front? I even tried to run an 
>> AppleScript
>> to active the program but that doesn't work either.
> 
> Telling Applescript to activate your standalone should work but perhaps you
> need to give the other process some time to complete first, so how about at
> the end of your preOpenCard sript...
> 
> send "focusMe" to me in 2 secs" # or some other length of time
> 
> on focusMe
>put  into myAppName
>put merge("tell application [[myAppName]] to activate") into tScript
>do tScript as applescript
> end focusMe
> 
> HTH,
> 
> Terry...
> 
>> 
>> Any ideas?
>> 
>> Bill Vlahos
>> 
>> On Jun 22, 2011, at 7:50 PM, Bill Vlahos wrote:
>> 
>>> I retested it and the windowshape property doesn't matter. It must be
>>> something else. 
>>> 
>>> Bill
>>> 
>>> Sent from my iPhone
>>> 
>>> On Jun 22, 2011, at 6:47 PM, Bill Vlahos  wrote:
>>> 
 I set it in the IDE before saving the standalone.
 
 Bill
 
 Sent from my iPhone
 
 On Jun 22, 2011, at 2:41 PM, Mark Schonewille
  wrote:
 
> Hi Bill,
> 
> Do you set the windowShape property when the stack opens?
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> New: Download the Installer Maker Plugin 1.6 for LiveCode here
> http://qery.us/ce
> 
> On 22 jun 2011, at 22:10, Bill Vlahos wrote:
> 
>> I've created a Mac app which uses the Windowshape property. It works fine
>> except that it opens either behind other windows or, even if it is the
>> frontmost window, still doesn't actually have focus. I have to click
>> anywhere on the window and then I can click on the button to get started.
>> 
>> I want it to open in front over everything and be ready for button 
>> clicks.
>> 
>> What is wrong?
>> 
>> Bill Vlahos
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription
>>> preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> --
> Dr Terry Judd | Senior Lecturer in Medical Education
> Medical Education Unit
> Melbourne Medical School
> The University of Melbourne
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Focus question

2011-06-23 Thread Jim Sims

On Jun 24, 2011, at 1:16 AM, Bill Vlahos wrote:

> Is there a way to kick my app to the front? I even tried to run an 
> AppleScript to active the program but that doesn't work either.

Does systemWindow do what you want?


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


Re: Focus question

2011-06-23 Thread Terry Judd
On 24/06/2011 09:16 AM, "Bill Vlahos"  wrote:

> I figured out what the problem is but I can't figure out a workaround.
> 
> I call an applescript embedded in a field on the preOpenCard Card script.
>do field "blahblah" as applescript
> 
> Is there a way to kick my app to the front? I even tried to run an AppleScript
> to active the program but that doesn't work either.

Telling Applescript to activate your standalone should work but perhaps you
need to give the other process some time to complete first, so how about at
the end of your preOpenCard sript...

send "focusMe" to me in 2 secs" # or some other length of time

on focusMe
put  into myAppName
put merge("tell application [[myAppName]] to activate") into tScript
do tScript as applescript
end focusMe

HTH,

Terry...

> 
> Any ideas?
> 
> Bill Vlahos
> 
> On Jun 22, 2011, at 7:50 PM, Bill Vlahos wrote:
> 
>> I retested it and the windowshape property doesn't matter. It must be
>> something else. 
>> 
>> Bill
>> 
>> Sent from my iPhone
>> 
>> On Jun 22, 2011, at 6:47 PM, Bill Vlahos  wrote:
>> 
>>> I set it in the IDE before saving the standalone.
>>> 
>>> Bill
>>> 
>>> Sent from my iPhone
>>> 
>>> On Jun 22, 2011, at 2:41 PM, Mark Schonewille
>>>  wrote:
>>> 
 Hi Bill,
 
 Do you set the windowShape property when the stack opens?
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 New: Download the Installer Maker Plugin 1.6 for LiveCode here
 http://qery.us/ce
 
 On 22 jun 2011, at 22:10, Bill Vlahos wrote:
 
> I've created a Mac app which uses the Windowshape property. It works fine
> except that it opens either behind other windows or, even if it is the
> frontmost window, still doesn't actually have focus. I have to click
> anywhere on the window and then I can click on the button to get started.
> 
> I want it to open in front over everything and be ready for button clicks.
> 
> What is wrong?
> 
> Bill Vlahos
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription
>>> preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Melbourne Medical School
The University of Melbourne




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


Re: Focus question

2011-06-23 Thread Bill Vlahos
I figured out what the problem is but I can't figure out a workaround.

I call an applescript embedded in a field on the preOpenCard Card script.
   do field "blahblah" as applescript

Is there a way to kick my app to the front? I even tried to run an AppleScript 
to active the program but that doesn't work either.

Any ideas?

Bill Vlahos

On Jun 22, 2011, at 7:50 PM, Bill Vlahos wrote:

> I retested it and the windowshape property doesn't matter. It must be 
> something else. 
> 
> Bill
> 
> Sent from my iPhone
> 
> On Jun 22, 2011, at 6:47 PM, Bill Vlahos  wrote:
> 
>> I set it in the IDE before saving the standalone. 
>> 
>> Bill
>> 
>> Sent from my iPhone
>> 
>> On Jun 22, 2011, at 2:41 PM, Mark Schonewille 
>>  wrote:
>> 
>>> Hi Bill,
>>> 
>>> Do you set the windowShape property when the stack opens?
>>> 
>>> --
>>> Best regards,
>>> 
>>> Mark Schonewille
>>> 
>>> Economy-x-Talk Consulting and Software Engineering
>>> Homepage: http://economy-x-talk.com
>>> Twitter: http://twitter.com/xtalkprogrammer
>>> KvK: 50277553
>>> 
>>> New: Download the Installer Maker Plugin 1.6 for LiveCode here 
>>> http://qery.us/ce
>>> 
>>> On 22 jun 2011, at 22:10, Bill Vlahos wrote:
>>> 
 I've created a Mac app which uses the Windowshape property. It works fine 
 except that it opens either behind other windows or, even if it is the 
 frontmost window, still doesn't actually have focus. I have to click 
 anywhere on the window and then I can click on the button to get started.
 
 I want it to open in front over everything and be ready for button clicks.
 
 What is wrong?
 
 Bill Vlahos
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Focus question

2011-06-22 Thread Bill Vlahos
I retested it and the windowshape property doesn't matter. It must be something 
else. 

Bill

Sent from my iPhone

On Jun 22, 2011, at 6:47 PM, Bill Vlahos  wrote:

> I set it in the IDE before saving the standalone. 
> 
> Bill
> 
> Sent from my iPhone
> 
> On Jun 22, 2011, at 2:41 PM, Mark Schonewille 
>  wrote:
> 
>> Hi Bill,
>> 
>> Do you set the windowShape property when the stack opens?
>> 
>> --
>> Best regards,
>> 
>> Mark Schonewille
>> 
>> Economy-x-Talk Consulting and Software Engineering
>> Homepage: http://economy-x-talk.com
>> Twitter: http://twitter.com/xtalkprogrammer
>> KvK: 50277553
>> 
>> New: Download the Installer Maker Plugin 1.6 for LiveCode here 
>> http://qery.us/ce
>> 
>> On 22 jun 2011, at 22:10, Bill Vlahos wrote:
>> 
>>> I've created a Mac app which uses the Windowshape property. It works fine 
>>> except that it opens either behind other windows or, even if it is the 
>>> frontmost window, still doesn't actually have focus. I have to click 
>>> anywhere on the window and then I can click on the button to get started.
>>> 
>>> I want it to open in front over everything and be ready for button clicks.
>>> 
>>> What is wrong?
>>> 
>>> Bill Vlahos
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Focus question

2011-06-22 Thread Bill Vlahos
I set it in the IDE before saving the standalone. 

Bill

Sent from my iPhone

On Jun 22, 2011, at 2:41 PM, Mark Schonewille 
 wrote:

> Hi Bill,
> 
> Do you set the windowShape property when the stack opens?
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> New: Download the Installer Maker Plugin 1.6 for LiveCode here 
> http://qery.us/ce
> 
> On 22 jun 2011, at 22:10, Bill Vlahos wrote:
> 
>> I've created a Mac app which uses the Windowshape property. It works fine 
>> except that it opens either behind other windows or, even if it is the 
>> frontmost window, still doesn't actually have focus. I have to click 
>> anywhere on the window and then I can click on the button to get started.
>> 
>> I want it to open in front over everything and be ready for button clicks.
>> 
>> What is wrong?
>> 
>> Bill Vlahos
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Focus question

2011-06-22 Thread Mark Schonewille
Hi Bill,

Do you set the windowShape property when the stack opens?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 22 jun 2011, at 22:10, Bill Vlahos wrote:

> I've created a Mac app which uses the Windowshape property. It works fine 
> except that it opens either behind other windows or, even if it is the 
> frontmost window, still doesn't actually have focus. I have to click anywhere 
> on the window and then I can click on the button to get started.
> 
> I want it to open in front over everything and be ready for button clicks.
> 
> What is wrong?
> 
> Bill Vlahos


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


RE: focus question

2010-12-07 Thread Mark Smith


Walt Brown wrote:
> 
> Done.
> 

Walt,

Thanks. Will look and play and let you know what all I learn. Probably on
the weekend.

-- M
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/focus-question-tp3073660p3077700.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


RE: focus question

2010-12-06 Thread Walt Brown
Done.

-Original Message-
From: use-livecode-boun...@lists.runrev.com
[mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Mark Smith
Sent: Monday, December 06, 2010 11:39 PM
To: How to use LiveCode
Subject: RE: focus question


Hi Walt, I think the list strips attachments. Could you send to me offlist?

mark_sm...@cpe.umanitoba.ca

Cheers,

- Mark


From: use-livecode-boun...@lists.runrev.com
[use-livecode-boun...@lists.runrev.com] On Behalf Of Walt Brown
[walter.h.br...@gmail.com]
Sent: Monday, December 06, 2010 9:11 AM
To: 'How to use LiveCode'; use-revolut...@lists.runrev.com
Subject: RE: focus question

I have had to use "Select after char -1 of fld X". I was actually using it
to place the cursor at various character positions in a field in a
rawKeyDown handler - I was using predictive lookup in rawKeyDown as a field
validation technique, playing around after David, Mark, and BvG's EXCELLENT
LiveCode V session yesterday.

An example is in the last field of my attached test stack.

Walt

-Original Message-
From: use-livecode-boun...@lists.runrev.com
[mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Mark Smith
Sent: Monday, December 06, 2010 7:42 AM
To: use-revolut...@lists.runrev.com
Subject: Re: focus question



Josh Mellicker wrote:
>
> Are you using "select after fld X"?
>

Hi Josh, thanks so much. No, I was using "focus on field x". The dictionary
says that if the field is unlocked text then the insertion point is placed
after the text in the field. I think I'll suggest that line be removed since
it clearly (in a number of tests) places it at the beginning.

However, your suggestion works perfectly, thanks!

-- Mark

--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/focus-question-tp3073660p3074
402.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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

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


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


RE: focus question

2010-12-06 Thread Mark Smith
Sounds like some weekend homework to me :-)

 I'll let you know how I make out. 

-- Mark



From: use-livecode-boun...@lists.runrev.com 
[use-livecode-boun...@lists.runrev.com] On Behalf Of Bob Sneidar [b...@twft.com]
Sent: Monday, December 06, 2010 12:07 PM
To: How to use LiveCode
Subject: Re: focus question

I have had the idea in the past to use a property to define whether or not a 
field should place the cursor at the beginning, end or last selection of a 
field upon entering it. Shouldn't be hard to do. Make 2 properties in each 
field, focusSelection, lastSelection and read/update these accordingly upon 
openField and exitField (closeField mind you that only gets sent when something 
changes). Keep in mind that before getting the focusSelection upon openField 
you would need to check to see if the properties already exist and create them 
if they didn't.

For extra credit, allow the user to change the behavior with a right click on 
the field object. I'd do it myself, but I am too doggone lazy.

Bob


On Dec 6, 2010, at 7:11 AM, Walt Brown wrote:

> I have had to use "Select after char -1 of fld X". I was actually using it
> to place the cursor at various character positions in a field in a
> rawKeyDown handler - I was using predictive lookup in rawKeyDown as a field
> validation technique, playing around after David, Mark, and BvG's EXCELLENT
> LiveCode V session yesterday.
>
> An example is in the last field of my attached test stack.
>
> Walt


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

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


RE: focus question

2010-12-06 Thread Mark Smith

Hi Walt, I think the list strips attachments. Could you send to me offlist?

mark_sm...@cpe.umanitoba.ca

Cheers,

- Mark


From: use-livecode-boun...@lists.runrev.com 
[use-livecode-boun...@lists.runrev.com] On Behalf Of Walt Brown 
[walter.h.br...@gmail.com]
Sent: Monday, December 06, 2010 9:11 AM
To: 'How to use LiveCode'; use-revolut...@lists.runrev.com
Subject: RE: focus question

I have had to use "Select after char -1 of fld X". I was actually using it
to place the cursor at various character positions in a field in a
rawKeyDown handler - I was using predictive lookup in rawKeyDown as a field
validation technique, playing around after David, Mark, and BvG's EXCELLENT
LiveCode V session yesterday.

An example is in the last field of my attached test stack.

Walt

-Original Message-
From: use-livecode-boun...@lists.runrev.com
[mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Mark Smith
Sent: Monday, December 06, 2010 7:42 AM
To: use-revolut...@lists.runrev.com
Subject: Re: focus question



Josh Mellicker wrote:
>
> Are you using "select after fld X"?
>

Hi Josh, thanks so much. No, I was using "focus on field x". The dictionary
says that if the field is unlocked text then the insertion point is placed
after the text in the field. I think I'll suggest that line be removed since
it clearly (in a number of tests) places it at the beginning.

However, your suggestion works perfectly, thanks!

-- Mark

--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/focus-question-tp3073660p3074
402.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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

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


RE: focus question

2010-12-06 Thread James Hurley



--

Message: 6
Date: Mon, 6 Dec 2010 10:33:02 -0500
From: "Walt Brown" 
To: "'How to use LiveCode'" ,
    
Subject: RE: focus question
Message-ID: <4cfd0240.8e7adc0a.73ad.5...@mx.google.com>
Content-Type: text/plain;   charset="US-ASCII"

Interesting if useless discovery - LC accepts real numbers as Point  
values,
ie "22.5,31.7", not just integers. I haven't discovered if it rounds  
or

truncates them in use though.

Walt




Walt,

A caution.

LC accepts real numbers as the Loc of objects but integers only as the  
points of line graphics.


If you say:

   set the points of grc 1 to 100,100 & cr & 200,200.5

the graphic disappears. Worse yet, you get no error message. This  
becomes a problem when your points are calculated and the calculation  
yields a fraction somewhere without you realizing it.


However if you say:

   set the loc of grc 1 to 150,150.7

there is no problem. The 150.7 is truncated to 150.

I have asked RunRev (many years ago) to change this anomalous behavior  
but without success.


Jim

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


Re: focus question

2010-12-06 Thread Bob Sneidar
I have had the idea in the past to use a property to define whether or not a 
field should place the cursor at the beginning, end or last selection of a 
field upon entering it. Shouldn't be hard to do. Make 2 properties in each 
field, focusSelection, lastSelection and read/update these accordingly upon 
openField and exitField (closeField mind you that only gets sent when something 
changes). Keep in mind that before getting the focusSelection upon openField 
you would need to check to see if the properties already exist and create them 
if they didn't. 

For extra credit, allow the user to change the behavior with a right click on 
the field object. I'd do it myself, but I am too doggone lazy. 

Bob


On Dec 6, 2010, at 7:11 AM, Walt Brown wrote:

> I have had to use "Select after char -1 of fld X". I was actually using it
> to place the cursor at various character positions in a field in a
> rawKeyDown handler - I was using predictive lookup in rawKeyDown as a field
> validation technique, playing around after David, Mark, and BvG's EXCELLENT
> LiveCode V session yesterday.
> 
> An example is in the last field of my attached test stack.
> 
> Walt


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


RE: focus question

2010-12-06 Thread Walt Brown
Interesting if useless discovery - LC accepts real numbers as Point values,
ie "22.5,31.7", not just integers. I haven't discovered if it rounds or
truncates them in use though.

Walt


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


RE: focus question

2010-12-06 Thread Walt Brown
I have had to use "Select after char -1 of fld X". I was actually using it
to place the cursor at various character positions in a field in a
rawKeyDown handler - I was using predictive lookup in rawKeyDown as a field
validation technique, playing around after David, Mark, and BvG's EXCELLENT
LiveCode V session yesterday.

An example is in the last field of my attached test stack.

Walt

-Original Message-
From: use-livecode-boun...@lists.runrev.com
[mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Mark Smith
Sent: Monday, December 06, 2010 7:42 AM
To: use-revolut...@lists.runrev.com
Subject: Re: focus question



Josh Mellicker wrote:
> 
> Are you using "select after fld X"?
> 

Hi Josh, thanks so much. No, I was using "focus on field x". The dictionary
says that if the field is unlocked text then the insertion point is placed
after the text in the field. I think I'll suggest that line be removed since
it clearly (in a number of tests) places it at the beginning.  

However, your suggestion works perfectly, thanks!

-- Mark

--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/focus-question-tp3073660p3074
402.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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

Re: focus question

2010-12-06 Thread Mark Smith


Josh Mellicker wrote:
> 
> Are you using "select after fld X"?
> 

Hi Josh, thanks so much. No, I was using "focus on field x". The dictionary
says that if the field is unlocked text then the insertion point is placed
after the text in the field. I think I'll suggest that line be removed since
it clearly (in a number of tests) places it at the beginning.  

However, your suggestion works perfectly, thanks!

-- Mark

-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/focus-question-tp3073660p3074402.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: focus question

2010-12-05 Thread Josh Mellicker
Are you using "select after fld X"?

On Dec 5, 2010, at 1:08 PM, Mark Smith wrote:

> 
> I'm still using 4.5.0 dp-3. In the dictionary under focus it says "If the
> object is an unlocked field, the insertion point is placed after the text in
> the field."  My experience is it is placed at the beginning of the field. I
> checked the online bug list, and the bug fixes for 4.5.1 and saw no mention
> of it. Do others have the same problem? Is there a way to actually place the
> cursor at the end of a field?
> 
> Thanks
> 
> -- Mark
> -- 
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/focus-question-tp3073660p3073660.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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