Page 1 of 1

an enhanced scrolling list field - revisited

Posted: Sun Oct 02, 2011 7:36 am
by marksmithhfx
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

Re: an enhanced scrolling list field - revisited

Posted: Sun Oct 02, 2011 11:05 am
by jmburnod
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

Re: an enhanced scrolling list field - revisited

Posted: Sun Oct 02, 2011 3:29 pm
by marksmithhfx
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

Re: an enhanced scrolling list field - revisited

Posted: Tue Oct 04, 2011 9:04 am
by BarrySumpter
Can't get it to do any thing but highlight the selected row.

Do I need to do anythang to get it to work?

Re: an enhanced scrolling list field - revisited

Posted: Tue Oct 04, 2011 11:37 pm
by marksmithhfx
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

Re: an enhanced scrolling list field - revisited

Posted: Tue Oct 04, 2011 11:41 pm
by BarrySumpter
Wasn't happening yesterday.

Working now.

Thanks for the time and effort and making it available to us.

Re: an enhanced scrolling list field - revisited

Posted: Wed Oct 05, 2011 12:10 am
by mwieder
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

Re: an enhanced scrolling list field - revisited

Posted: Wed Oct 05, 2011 12:11 am
by mwieder
...and for the record, it works fine on linux as well.

Re: an enhanced scrolling list field - revisited

Posted: Wed Oct 05, 2011 3:00 am
by marksmithhfx
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

Re: an enhanced scrolling list field - revisited

Posted: Wed Oct 05, 2011 4:28 am
by marksmithhfx
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

Re: an enhanced scrolling list field - revisited

Posted: Thu Oct 06, 2011 12:41 am
by mwieder
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

Posted: Thu Oct 06, 2011 6:10 am
by WaltBrown
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.