an enhanced scrolling list field - revisited

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

an enhanced scrolling list field - revisited

Post by marksmithhfx » Sun Oct 02, 2011 7:36 am

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
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

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: an enhanced scrolling list field - revisited

Post by jmburnod » Sun Oct 02, 2011 11:05 am

YES. very useful and clever . Many thanks for this stack and the clear script comment
I encourage you to provide feedback, advice and suggestions
I mistreated it a lot during five minutes and it work well for me

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

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Re: an enhanced scrolling list field - revisited

Post by marksmithhfx » Sun Oct 02, 2011 3:29 pm

jmburnod wrote: If I REALY want. I can select several lines of the fld and i can delete them with the keyboard
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: I watch it is possible to move the selectedline outside the field. You choosed it or not ?
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:

##----------------- 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

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: an enhanced scrolling list field - revisited

Post by BarrySumpter » Tue Oct 04, 2011 9:04 am

Can't get it to do any thing but highlight the selected row.

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.

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Re: an enhanced scrolling list field - revisited

Post by marksmithhfx » Tue Oct 04, 2011 11:37 pm

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?
Hi Barry,

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

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: an enhanced scrolling list field - revisited

Post by BarrySumpter » Tue Oct 04, 2011 11:41 pm

Wasn't happening yesterday.

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.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: an enhanced scrolling list field - revisited

Post by mwieder » Wed Oct 05, 2011 12:10 am

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

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: an enhanced scrolling list field - revisited

Post by mwieder » Wed Oct 05, 2011 12:11 am

...and for the record, it works fine on linux as well.

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Re: an enhanced scrolling list field - revisited

Post by marksmithhfx » Wed Oct 05, 2011 3:00 am

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
Now that is cool! I am off to check Powertools.....

-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Re: an enhanced scrolling list field - revisited

Post by marksmithhfx » Wed Oct 05, 2011 4:28 am

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
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: an enhanced scrolling list field - revisited

Post by mwieder » Thu Oct 06, 2011 12:41 am

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.

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Re: an enhanced scrolling list field - revisited

Post by WaltBrown » Thu Oct 06, 2011 6:10 am

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

Post Reply