Page 1 of 1

Help! My Code window is stuck

Posted: Fri Oct 12, 2018 11:05 am
by HazelL
I've come up against a strange problem.
I'm using LiveCode community 9.0 on a Macbook Air

The code window has become placed in such a way that I cannot grab the edges
to move it.  The top and righthand edges of the window have moved beyond the
edges of my screen.  I can't see the first eight lines of code or close the window
except by using the keyboard. I've tried reinstalling LiveCode, but that doesn't
solve the problem. I also looked for preferences in the System Library (hoping that deleting them might help), but didn't find anything.
LC screen.png
This screenshot shows the problem.

Re: Help! My Code window is stuck

Posted: Fri Oct 12, 2018 11:18 am
by LiveCode_Panos
Hello HazelL,

For reference, the Preferences are stored in ~/Library/Preferences/RunRev/livecode7.rev file.

You can move the Script Editor window (and any other window) by script:

1. Open the message box
2. Type in the message box but do NOT press return:

set the top of the mousestack to 300

3. Place the cursor anywhere on the script editor widow and now press return

Hope this helps.

Regards,
Panos
--

Re: Help! My Code window is stuck

Posted: Fri Oct 12, 2018 12:12 pm
by bogs
Hey Panos,
LiveCode_Panos wrote:
Fri Oct 12, 2018 11:18 am
set the top of the mousestack to 300
While this would indeed work to lower the window to a point where HazelL could read the first lines, doesn't it still leave the window in a state on mac where you can't resize it, since OSX only has the one resize handle at the bottom-right of the window?

Maybe better to modify that to

Code: Select all

set the rect of the mouseStack to 80,80,200,200
which, unless your screen is incredibly tiny, should put it at a size and location where you can make it the size you want it.

Re: Help! My Code window is stuck

Posted: Fri Oct 12, 2018 12:28 pm
by LiveCode_Panos
Hello bogs,

I think in LiveCode < 6.7 the resize handle only existed at the bottom-right of the window, but in newer LC versions you can resize the Script Editor window by dragging any of the four corners.

Kind regards,
Panos
--

Re: Help! My Code window is stuck

Posted: Fri Oct 12, 2018 4:16 pm
by bogs
Heya Panos,

I wasn't actually thinking about Lc per se, but the way windows are resized on OSX. I don't have access to OSX newer than 10.6.5, so maybe it has changed this behavior, but in snow leopard, no matter what window your looking at, you can only resize it from the bottom right :
osxTest [Running] - Oracle VM VirtualBox_079.png
OSX 10.6.5...
And our friend HazelL is using a Macbook Air.

In any other OS, all the way back to Mc, you can resize the window any way you want from any corner though.

Re: Help! My Code window is stuck

Posted: Fri Oct 12, 2018 4:30 pm
by FourthWorld
MacOS finally caught up with the rest of the world in allowing resizing from any edge a few years ago. LC enabled that for us in v6.7 by switching the windowing code to use Cocoa APIs.

Re: Help! My Code window is stuck

Posted: Fri Oct 12, 2018 4:54 pm
by bogs
Ahhh, well that explains it then :D

Sorry Panos!