an enhanced scrolling list field - revisited
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
an enhanced scrolling list field - revisited
Well, I am re-posting the enhanced scrolling list field primarily as a Mac-only control this time until 7766 gets fixed. As per the first round, its a scrolling list field with a popup menu that allows you to Add, Edit, Delete and Sort items in the list (this much works perfectly fine on the PC). On the Mac you can also drag and drop items in the list to re-arrange them (and this is disabled on the PC with a single If device = 'x86' don't do this statement in the code).
Although it's been tested here before I'm continuing to post it as a beta because nothing's perfect, and I hope you folks find the bugs in it if there are any. I've been playing with it quite a bit over the past two weeks and it feels pretty stable to me.
As per the first go round I certainly cannot take full credit for this and thank the many of you who have made suggestions and contributions along the way. You know who you are, and if you don't check the comments in the code!
Thanks, and I hope it proves useful somewhere. I encourage you to provide feedback, advice and suggestions.
-- Mark
Although it's been tested here before I'm continuing to post it as a beta because nothing's perfect, and I hope you folks find the bugs in it if there are any. I've been playing with it quite a bit over the past two weeks and it feels pretty stable to me.
As per the first go round I certainly cannot take full credit for this and thank the many of you who have made suggestions and contributions along the way. You know who you are, and if you don't check the comments in the code!
Thanks, and I hope it proves useful somewhere. I encourage you to provide feedback, advice and suggestions.
-- Mark
- Attachments
-
- enhanced scrolling list13b.livecode.zip
- an enhanced scrolling list control for LC
- (6.64 KiB) Downloaded 312 times
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: an enhanced scrolling list field - revisited
YES. very useful and clever . Many thanks for this stack and the clear script comment
Just :
If I REALY want. I can select several lines of the fld and i can delete them with the keyboard
(rename - click on the selectedline - drag - type a letter with the keyboard )
I watch it is possible to move the selectedline outside the field. You choosed it or not ?
I hope that is useful for you
All the best from Geneva
Jean-Marc
I mistreated it a lot during five minutes and it work well for meI encourage you to provide feedback, advice and suggestions
Just :
If I REALY want. I can select several lines of the fld and i can delete them with the keyboard
(rename - click on the selectedline - drag - type a letter with the keyboard )
I watch it is possible to move the selectedline outside the field. You choosed it or not ?
I hope that is useful for you
All the best from Geneva
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: an enhanced scrolling list field - revisited
Jean-Marc, that is a very good suggestion. I've added it to my list of future things to do (the ability to select a number of items from the list and move/delete them as a group)jmburnod wrote: If I REALY want. I can select several lines of the fld and i can delete them with the keyboard
Yes, it was done deliberately that way. Several other programs I tested do that (Safari, for example, lets you drag a bookmark folder entry all over the screen and doesn't confine it to the list). (Plus, I didn't want to mess with Bernd Niggemann's code: he wrote the drag image routine). He moves the image around with this line:jmburnod wrote: I watch it is possible to move the selectedline outside the field. You choosed it or not ?
##----------------- bn
set the topLeft of image sDragImage to the left of me & "," & v - sYDiff
##---------------- -end bn
By using the "left of me" he keeps the image constrained in the horizontal direction and then adjusts the vertical position of the image with v-sYDiff. Clever code he wrote and I didn't see any reason to want to change it

Thanks for the comments,
-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: an enhanced scrolling list field - revisited
Can't get it to do any thing but highlight the selected row.
Do I need to do anythang to get it to work?
Do I need to do anythang to get it to work?
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: an enhanced scrolling list field - revisited
Hi Barry,BarrySumpter wrote:Can't get it to do any thing but highlight the selected row.
Do I need to do anythang to get it to work?
Right mouse button should pop-up a menu. Let me know if you don't see it.
-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: an enhanced scrolling list field - revisited
Wasn't happening yesterday.
Working now.
Thanks for the time and effort and making it available to us.
Working now.
Thanks for the time and effort and making it available to us.
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Re: an enhanced scrolling list field - revisited
Mark-
Nicely done. And it makes a nice PowerTools widget by dropping it into my Widgets folder without any changes, allowing it to be dragged onto new stacks like any other object.
http://www.ahsoftware.net/PowerTools/PowerTools.irev
Nicely done. And it makes a nice PowerTools widget by dropping it into my Widgets folder without any changes, allowing it to be dragged onto new stacks like any other object.
http://www.ahsoftware.net/PowerTools/PowerTools.irev
Re: an enhanced scrolling list field - revisited
...and for the record, it works fine on linux as well.
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: an enhanced scrolling list field - revisited
Now that is cool! I am off to check Powertools.....mwieder wrote:Mark-
Nicely done. And it makes a nice PowerTools widget by dropping it into my Widgets folder without any changes, allowing it to be dragged onto new stacks like any other object.
http://www.ahsoftware.net/PowerTools/PowerTools.irev
-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: an enhanced scrolling list field - revisited
Mark, what are the differences between your trial version and the registered version?
Thanks
BTW, Jing is awesome... didn't know that existed. (Oh, and many thanks for the Linux update... as you might expect, I don't have Linux installed
-- Mark
Thanks
BTW, Jing is awesome... didn't know that existed. (Oh, and many thanks for the Linux update... as you might expect, I don't have Linux installed

-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: an enhanced scrolling list field - revisited
Well, the trial version is an older build, so there are some new features added (DropTools compatibility, more flexibility for widgets, better minimizing, a few bugs fixed...) but the main thing is that the trial version will pop up a nagware screen at random intervals and revert back to the builtin tools palette until you restart the IDE. Other than that I didn't want to put out a crippled version because I hate it when people do that.
Re: an enhanced scrolling list field - revisited
There's a correlation here somewhere between LC and... oh, never mind, wrong forum...
will pop up a nagware screen at random intervals and revert back to the builtin tools palette until you restart the IDE.
Walt Brown
Omnis traductor traditor
Omnis traductor traditor