Found an interesting behavior.. I was trying to set up a custom control
that keeps track of the current row and column and put the script in the
group, but rawkeyup or rawkeydown messages never reach the group. I'm
wondering if its because the message is sent to the figmentary popup field
rather
Hi Mike,
Thanks! I put the script in the table field itself with no luck.
But when I moved it to the card script, it works! Great! I never
would have come up with that in a million years.
This list is fantastic.
Oh, and I just re-named the table field to "Opera" ;-)
Tim Selander
Tokyo,
For some reason I now want to name a table field "Opera."
On Wed, Feb 14, 2018 at 10:09 AM, dunbarx via use-livecode <
use-livecode@lists.runrev.com> wrote:
> The extra field is what I once called a "phantom" field, ephemeral and
> elusive. But it does exist:
>
> In a table field script:
>
> on
The extra field is what I once called a "phantom" field, ephemeral and
elusive. But it does exist:
In a table field script:
on mouseEnter
put the number of flds
end mouseEnter
If you move around the table field without a selection, you get 1, If you
click on a "cell" to "select" it, and
Hmm. There is a potential issue that would need to be worked around. The
field name is the same whether one has a single table field or 12. Perhaps
watching focus changes? I'm back to thinking there is a property that
tracks which field to update on close of the editing overlay. For a single
On 02/14/2018 08:04 AM, Mike Bonner via use-livecode wrote:
Try this...
on rawkeyup pkey
send "getline" to me in 10 millisec
pass rawkeyup
end rawkeyup
command getline
put the short name of the focusedobject
end getline
This gives you the name of the editing field that appears for
the mouseControl will give you the control number. If you get the long id of
control (word 2 of the mouseControl) you will have the clicked object. Courtesy
Trevor Devore.
Bob S
> On Feb 14, 2018, at 08:24 , dunbarx via use-livecode
> wrote:
>
> You know, I
a table field ISN'T a single field, its a field bundled with an extra
"editing" field that pops up as an overlay. I figured there had to be a
way to pass the cell data back to the field proper, and poked around till I
found out that the transfer mechanism is the name of the overlay field. I
was
You know, I have given advice many times to people trying to find the
selected field in a DG. The target is always of the form, for example,
"field Col 3 0005".
But how does the focussedObject return similar data in a table field? The
fact that is does is marvelous indeed, but I never would have
Try this...
on rawkeyup pkey
send "getline" to me in 10 millisec
pass rawkeyup
end rawkeyup
command getline
put the short name of the focusedobject
end getline
This gives you the name of the editing field that appears for each cell in
the form of:
revCell-2,2
Parse that and voila,
You know, this proved more of a problem than I thought.
Richmond, the issue is with tab and return keyPresses, not mouse clicks.
Anyway, given a table field 1 and another field 2, this works if you tab or
return in the table field:
on rawKeyUp tKey
put the selectedLoc && the selectedChunk
Hey-Ho . . .
I tried this script in the tableField:
on mouseDown
put the selectedLine of me
end mouseDown
and it returned the line where I clicked.
Richmond.
On 14/2/2018 3:06 pm, Tim Selander via use-livecode wrote:
Hi,
Editing a table field (not datagrid) and need to track the number
12 matches
Mail list logo