When project loads, cursor is in "selection mode"

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
xyz
Posts: 30
Joined: Sat Feb 29, 2020 4:45 am

When project loads, cursor is in "selection mode"

Post by xyz » Wed Mar 10, 2021 5:52 pm

I have a slightly annoying issue. When I first load my project the trackpad cursor is in "selection mode", so when I move the cursor a "dashed rectangle" outline is shown and the pointer starts selecting items on the card. This is no big deal. I just click on the card and the selection mode stops, but it is a little annoying.

This only happens on one of my projects, none of the others. I tried setting the focus to one of my controls (a list field) when I open the card to see if that would eliminate the problem but it has not. I assume that there is some setting that I have inadvertently set that is causing this. I would like to turn it off.

Thanks

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: When project loads, cursor is in "selection mode"

Post by richmond62 » Wed Mar 10, 2021 5:56 pm

Probably something in an openStack / openCard script?

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: When project loads, cursor is in "selection mode"

Post by Klaus » Wed Mar 10, 2021 6:19 pm

Hm, I just tested this and found that the TOOL is/stays the one that was selected right before opening an existing project.
So I would consider this "normal" behavior.

kdjanz
Posts: 300
Joined: Fri Dec 09, 2011 12:12 pm

Re: When project loads, cursor is in "selection mode"

Post by kdjanz » Wed Mar 10, 2021 6:21 pm

Try saving the stack while in run mode, then closing the stack. When you reopen the stack next time, is it in edit mode or run mode?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: When project loads, cursor is in "selection mode"

Post by dunbarx » Wed Mar 10, 2021 6:30 pm

Richmond nailed this. Put an "openCard" handler in the card script:

Code: Select all

on openCard
  choose browse tool
end openCard
Craig

xyz
Posts: 30
Joined: Sat Feb 29, 2020 4:45 am

Re: When project loads, cursor is in "selection mode"

Post by xyz » Wed Mar 10, 2021 8:39 pm

Thank you all.

To answer kdjanz, "yes, saving after putting the project in run/browse mode and then closing the stack" seems to have solved the problem. Now, regardless of whether I am in "browse" or "pointer" mode when I save and close, the pointer/cursor is no longer set to "select objects" when I open the project. But, I am curious why the problem persisted as long as it did since I had gone through several "save cycles." At any rate, the problem seems to be fixed.

Thank you all.

Post Reply