I have purchased the Listmagic table addon. It highlights a line and allows you to right lick on it to copy the line. I want to double click on the line and automatically copy the line detail, put it into a variable and go to a different card to paste the information into some specific fields. I can't work out the doubleclick and copy script. Anyone there who can help?
cheers
Glenn
Select a line in a table
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 137
- Joined: Thu Jul 24, 2008 11:22 pm
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Hi Glenn,
For your ListMagic question, you're better off emailing Jim Buffalini of So Smart Software - I'm not sure if they have a forum on their website, but it is quite possible that your fellow ListMagic users haven't noticed your question on this runrev.com forum. I'm not a ListMagic user, so I can't help you there.
But I can lend a hand with a regular table field question. Start a separate test stack, and drag a table field onto it; use the inspector palette to set the name of this field to "MyTableField", turn off cell editing and turn on list behavior, as otherwise we won't be able to receive the necessary events.
Set the field script to:
Test it by doubleclicking on the table field: you should get a dialog box which tells you the line you double-clicked on.
Next you add the contectual menu support, so drag a popup menu onto your stack, and name it "MyPopUpButton"; next you set its script to:And now you wire things up by adding the following to the field script:
Now use the mouse to select a line in your table field, and right-click; the popup menu should display, and when you select an item from it, you should get a dialog box which tells you the selected line of the field and which item you picked from the popup menu.
HTH,
Jan Schenkel.
For your ListMagic question, you're better off emailing Jim Buffalini of So Smart Software - I'm not sure if they have a forum on their website, but it is quite possible that your fellow ListMagic users haven't noticed your question on this runrev.com forum. I'm not a ListMagic user, so I can't help you there.
But I can lend a hand with a regular table field question. Start a separate test stack, and drag a table field onto it; use the inspector palette to set the name of this field to "MyTableField", turn off cell editing and turn on list behavior, as otherwise we won't be able to receive the necessary events.
Set the field script to:
Code: Select all
on mouseDoubleUp
answer the hilitedLine of me
end mouseDoubleUp
Next you add the contectual menu support, so drag a popup menu onto your stack, and name it "MyPopUpButton"; next you set its script to:
Code: Select all
on menuPick pItemName
answer the hilitedLine of field "'MyTableField" && "->" && pItemName
end menuPick
Code: Select all
on mouseUp pButton
if pButton is 3 then -- it's a right-mouse click
popup button "MyPopUpButton"
end if
end mouseUp
HTH,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
-
- Posts: 137
- Joined: Thu Jul 24, 2008 11:22 pm