One more try on the second part of my original post.
In LC 7.01, Mac Yosemite, I find that the insertion point blinks once when
placed by clicking or typing, then disappears. It will also blink once in its
most recent position if I click the title bar, but again it disappears.
Also, if I type
Thanks to Bernd for the simplest solution to my practical problem. If we "go
to" Stack A "the selectedChunk" will mean "the selectedChunk in stack A". But,
as he notes, preservation of the prior selection depends on certain conditions
(more on this below).
One anomaly is that "the selecte
paste
end if
end mouseUp
LC 7.0.6 RC2
Kind regards
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/Insertion-point-problems-tp4693251p4693292.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
is
> false, whereas in David's case the traversalon of the button is true,
> which
> will void the current selection in the field on mousedown.
>
> -- Peter
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/Insertion-point-problems-tp469
J. Landman Gay wrote:
> I don't think traversal is the problem here. When I tested, my button
> did not have traversalOn set to true (that was the first thing I
> checked.) The anomaly is that the selectedChunk works fine if the
> selection contains text, it only fails if the selection is a simple
I don't think traversal is the problem here. When I tested, my button did not
have traversalOn set to true (that was the first thing I checked.) The anomaly
is that the selectedChunk works fine if the selection contains text, it only
fails if the selection is a simple insertion point.
Both ins
Yes, the traversalOn property is the key here.
Only one object can have focus at any given time, so when traversing
among controls with the keyboard any field selection will be cleared.
But by turning off the traversalOn property for buttons you want to be
able to act on text, the focus remai
then -- or whatever
> paste
>end if
>
> end mouseUp
>
> Kind regards
> Bernd
>
>
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/Insertion-point-problems-tp4693251p4693267.html
> Sent from the Revolution - Use
What I do for this is store the selectedchunk in a customprop or a script
local on mouseEnter in the button script that will be doing the pasting.
That way if the mousedown removes the current selection you already have
the info you need. BTW, if you set the traversalon to false for the button,
the
this message in context:
http://runtime-revolution.278305.n4.nabble.com/Insertion-point-problems-tp4693251p4693267.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please v
On a Mac, I opened two stacks, one with a button, one with a field. I
palletized the first stack, then set the insertion point in the field in the
second one. Clicking the button in the palletized stack still causes the field
on the second stack to lose focus.
I don’t think there is a way to c
On 6/23/2015 4:49 PM, dfepst...@comcast.net wrote:
I want a menu button in a palette to paste the clipboard's contents
to the topStack at the selectedChunk. This works if the
selectedChunk actually includes some hilited text ("char 1 to 4..."),
but not if the selectedChunk is an insertion point
Thanks to Craig Newman and Bob Sneidar. Unless I have misunderstood them,
which is possible, I think I have not clearly enough explained my problem.
I want a menu button in a palette to paste the clipboard's contents to the
topStack at the selectedChunk. This works if the selectedChunk act
Instead check the focusedObject. If it is a field then you can paste.
Bob S
> On Jun 22, 2015, at 14:19 , David Epstein wrote:
>
> 1. With a word selected in field 1 of the topStack, a menu button in a
> palette issues a command “Paste”. The handler for this command includes
>
> set the d
selectedText
put it after fld 1
end mouseUp
Craig Newman
set the
defaultStack to the topStack
get the selectedChunk
-Original Message-
From: David Epstein
To: use-livecode
Sent: Mon, Jun 22, 2015 5:20 pm
Subject: Insertion point problems
1. With a word selected in field
1. With a word selected in field 1 of the topStack, a menu button in a palette
issues a command “Paste”. The handler for this command includes
set the defaultStack to the topStack
get the selectedChunk
— test whether the chunk is a suitable place to paste, and if so then
paste
This works fine
16 matches
Mail list logo