Wrong cursor after scripted painting?

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
PlaidFlannel
Posts: 43
Joined: Fri Aug 21, 2020 7:06 pm
Location: Denver, CO

Wrong cursor after scripted painting?

Post by PlaidFlannel » Thu Feb 04, 2021 8:27 pm

In my stack, I sometimes paint into an image object under script control. In such a script, there is a line "select line tool", some dragging, and then the line "select browse tool".

During the painting, the cursor appears to be the plus sign "+". When the browse tool is selected and the script finishes, the cursor does not usually change back to the arrow until after it has been moved out of the control (usually a button) that initiated the painting script.

Is it my responsibility in my script to change the cursor back to the arrow?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9356
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Wrong cursor after scripted painting?

Post by richmond62 » Sat Mar 20, 2021 7:32 am

Is it my responsibility in my script to change the cursor back to the arrow?
As the cursor does not change back to the pointer it seems you
have answered your own question. 8)

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9645
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Wrong cursor after scripted painting?

Post by dunbarx » Sat Mar 20, 2021 7:18 pm

Considering Richmond's spot-on but slightly snarky reply ( :wink: ), check out the "choose" command in the dictionary.

Craig

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”