Page 1 of 1

Unelectable widget - SOLVED

Posted: Wed Dec 08, 2021 11:44 pm
by jameshale
Hi,
This is a weird one, at least to me.
I was attempting to update the app I just placed on the App store to remove the resizing code for mobile devices as I want to make a Mac version.
So I began to create a new stack and copy the controls across. They consist of buttons, fields and a couple of SVG widgets.
All went well until I tried to select the last SVG widget. It was set to change color on clicking and run a script.
I was unable to select it!
Each time I clicked to select it, it would hilite and run its script.
I was ablle to dbl click it in the project browser, which selected it and enable me to copy and paste it into the new stack, but was unable to move it once there as clicking on it here also ran its script.
It was as if the IDE considered this widget to be un run mode and no longer in development mode.
Nothing I did could convince the IDE that it wasn’t in run mode with this widget.
I eventually just gave up and re-created it.
Anyone have any idea about why this behaved this way?
As I mentioned it was one of a couple of SVG widgets but the only one to do this.
Checking its properties, and comparing them to the well behaved widgets, I could see no difference. Aprt from the colors and scripts and icons they were identical.
This was on MacOS 11.6.2 and both LC 9.6.5 and 10dp1

Re: Unelectable widget

Posted: Thu Dec 09, 2021 1:45 am
by andresdt
Hi @jameshale.
Check that your widget has the cantSelect property set to false

Re: Unelectable widget

Posted: Thu Dec 09, 2021 3:45 am
by jameshale
@Andesdt brilliant.
Wasn’t aware of that property nor how it got set to true.
Set it to false and all is normal again.