an enhanced scrolling list field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
an enhanced scrolling list field
File attachment deleted until I can find and fix the problem on Windows.
Best,
-- Mark
Best,
-- Mark
Last edited by marksmithhfx on Wed Nov 09, 2011 5:18 am, edited 2 times in total.
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
Hi Mark,
Nice idea. A couple comments:
1. Make the popup menu (not the field, the popup menu itself) left click, not right click. My "habit" (and it may just be me) is habitually to left click, not right click, on a popup (the same way the LC IDE works).
2. Some of the time I tried to drag and drop, it instead put parentheses around my selection instead of dropping in the new location. In my brief look I didn't see where that was happening in the scripts.
3. It would be really handy if it were combined with a tree structure, like PowerPoint outlines, so you could open and close, drag and drop whole subsections at once.
Thanks.
Nice idea. A couple comments:
1. Make the popup menu (not the field, the popup menu itself) left click, not right click. My "habit" (and it may just be me) is habitually to left click, not right click, on a popup (the same way the LC IDE works).
2. Some of the time I tried to drag and drop, it instead put parentheses around my selection instead of dropping in the new location. In my brief look I didn't see where that was happening in the scripts.
3. It would be really handy if it were combined with a tree structure, like PowerPoint outlines, so you could open and close, drag and drop whole subsections at once.
Thanks.
Walt Brown
Omnis traductor traditor
Omnis traductor traditor
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: an enhanced scrolling list field
Thanks Walt. You're right, it is really not behaving well on windows at all. I did a cursory test on Windows but should have spent more time testing it there. For what its worth I can't duplicate the problems on the Mac so I am going to port the code over and do some development on the windows side to track the drag/drop bug down. I'll repost it once I find the problem. THANKS so much for posting a message. -- MarkWaltBrown wrote:Hi Mark,
Nice idea. A couple comments:
1. Make the popup menu (not the field, the popup menu itself) left click, not right click. My "habit" (and it may just be me) is habitually to left click, not right click, on a popup (the same way the LC IDE works).
2. Some of the time I tried to drag and drop, it instead put parentheses around my selection instead of dropping in the new location. In my brief look I didn't see where that was happening in the scripts.
3. It would be really handy if it were combined with a tree structure, like PowerPoint outlines, so you could open and close, drag and drop whole subsections at once.
Thanks.
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
Hi Craig, I did some testing on the PC and narrowed the problem to a difference between how the Mac and PC versions of LC work (see the attached demonstration program). I would appreciate it if you could give the demo a try and let me know if you are seeing the same problem I am (I've documented the problem on the card in a label field). At the moment I don't have a work around and assuming it is a real problem with LC I may have to wait for them to fix it.WaltBrown wrote:Hi Mark,
Nice idea. A couple comments:
2. Some of the time I tried to drag and drop, it instead put parentheses around my selection instead of dropping in the new location. In my brief look I didn't see where that was happening in the scripts.
3. It would be really handy if it were combined with a tree structure, like PowerPoint outlines, so you could open and close, drag and drop whole subsections at once.
Thanks.
I liked your suggestion #3 above, and it is something I am planning on implementing in a later version of this code, but I wanted to get on with finishing the whole program first before moving into the "version 2.0" features of it

Thanks again for your feedback
Cheers,
-- Mark
- Attachments
-
- test mousemove.livecode.zip
- (1.61 KiB) Downloaded 227 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
You are correct, on the PC the pop up list intercepts the mousemove messages. Also, after selecting one of the pop up items, I needed to click in the field to get the mouserelease message and resume recieving the mousemove messages. It took two clicks a few times when I tapped the mouse pad, but that might be my computer, not LC.
Walt
Walt
Walt Brown
Omnis traductor traditor
Omnis traductor traditor
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: an enhanced scrolling list field
Thanks Walt. I noticed the two click thing as well and can't recall at the moment whether I thought that was a separate problem or part of the same problem. I'm going to take another look at it this weekend. I'll probably repost the enhanced scrolling list as a Mac-only tool for the time being, which is a shame, but I have reported the problem and sent the demo stack to RR.WaltBrown wrote:You are correct, on the PC the pop up list intercepts the mousemove messages. Also, after selecting one of the pop up items, I needed to click in the field to get the mouserelease message and resume recieving the mousemove messages. It took two clicks a few times when I tapped the mouse pad, but that might be my computer, not LC.
Walt
Thanks for your feedback.
-- 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
Hi Walt, just to update you on my (very slow) progress. 1. I found and fixed the left mouse button/right mouse button problem you mentioned in a previous msg. It was my misunderstanding of the menumousebutton property. I thought it defined which button popped up the menu on the field (so I set it to 3), not which button was used to select the menu choice. I've set the property to 0 and all is well.marksmithhfx wrote:Thanks Walt. I noticed the two click thing as well and can't recall at the moment whether I thought that was a separate problem or part of the same problem. I'm going to take another look at it this weekend.WaltBrown wrote:Also, after selecting one of the pop up items, I needed to click in the field to get the mouserelease message and resume recieving the mousemove messages. It took two clicks a few times when I tapped the mouse pad, but that might be my computer, not LC.
Walt
-- Mark
2. The "double click" to get the focus back in the field was the result of using a dispatch command to popup the menu (I was using dispatch to pass some parameters on the popup line: dispatch "setup_popup" to btn popupname with the short name of me, tClick)
This took awhile to track down because like the mousemove problem (7766), the double click problem only occured on the PC not on the Mac. But by replacing dispatch with a direct 'popup btn "button name" at tClick' command the double click problem went away on the PC so I am pretty confident (but not certain) that is what caused the problem.
I'm going to repost it tomorrow... the whole down time did allow me to find and fix a few other problems as well, so we'll see how it goes this time

It does feel more stable to me. Its a piece of code I really need to get right because its a major component of a larger program I am working on. I guess by posting it here I am hoping you and others will continue to find problems I never thought could exist

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