Problems with message box and script editor screens

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

ClintMA
Posts: 39
Joined: Thu Jan 21, 2016 2:52 am

Problems with message box and script editor screens

Post by ClintMA » Fri Jan 22, 2016 8:19 am

I've just installed LiveCode Community 8.0 (dp13) on my Windows 7 computer. Right off the bat, I've encountered two problems:

1. Unfortunately, the message box is no where to be found. I've checked the Preferences and it's marked to appear even when a stack is being run. When I click "Message Box" in the row just below the main menu, the line high lights, but no box appears. I suspect it's off screen. I created a new stack and added a button. In the mouseUp script for the button, I tried this line: "set the loc of the message box to the screenLoc", but the handler wouldn't compile (the line is flagged the line with a red x). I suspect I don't know the correct name for the message box palette (or perhaps it can't be accessed via a script).

2. When I open the script editor, it more than fills the entire screen top to bottom. Since the top (and bottom) of the window is cut off, I can't close it. Like the message box above, I don't know how to change it's size and/or location.

Any suggestions?

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Problems with message box and script editor screens

Post by Thierry » Fri Jan 22, 2016 10:11 am

ClintMA wrote: 1. .... I tried this line: "set the loc of the message box to the screenLoc"
try this instead:

Code: Select all

set the loc of stack "Message Box" to the screenLoc
2. When I open the script editor, it more than fills the entire screen top to bottom. Since the top (and bottom) of the window is cut off, I can't close it. Like the message box above, I don't know how to change it's size and/or location.

Any suggestions?

Code: Select all

set the rectangle of stack "revNewScriptEditor 1" to ..
HTH,

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

ClintMA
Posts: 39
Joined: Thu Jan 21, 2016 2:52 am

Re: Problems with message box and script editor screens

Post by ClintMA » Sat Jan 23, 2016 2:59 am

Many thanks, Thierry. The information you provides about the correct way to refer to the message box and script editor was very helpful. I was able to fix the script editor very quickly, but the message box was more problematic.

I thought perhaps that my copy of Live Code had become corrupted, so I uninstalled it and then installed it again fresh. I created a new stack on which I placed one button and one field. The script editor for the button opened without problem (unlike the previous installation), but the message box was still missing.

So I placed the following code into the mouseUp handler of the button:

Code: Select all

on mouseUp
   put the stacks & return & return into field 1
   put the visible of stack "message box" & return & return after field 1
   put the rectangle of stack "message box" & return after field 1
   put the screenRect after field 1
end mouseUp
Clicking on the button produced the following:

C:/Program Files (x86)/RunRev/LiveCode Community 8.0 (dp 13)/Toolset/palettes/tools/revtools.livecodescript
C:/Program Files (x86)/RunRev/LiveCode Community 8.0 (dp 13)/Toolset/palettes/message box/revmessagebox.8.rev
C:/Users/Clint/Desktop/Test 4.livecode
C:/Program Files (x86)/RunRev/LiveCode Community 8.0 (dp 13)/Toolset/palettes/script editor/revscripteditor.8.rev
C:/Program Files (x86)/RunRev/LiveCode Community 8.0 (dp 13)/Toolset/palettes/menubar/revmenubar.livecodescript

true

410,1040,970,1201
0,0,1280,720


You will note that line 2 of the results shows that the message box stack is open and the third line from the bottom shows that it is set to be visible. The second to the last line shows that it is off screen (compare to screenRect in the last line).

My guess is that the message box is intentionally initially set to be off screen, and that clicking on the "Message Box" button below the menu bar is supposed to move the the message box location so that it can be seen. But this is not happening for some reason.

Any further suggestions?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Problems with message box and script editor screens

Post by Simon » Sat Jan 23, 2016 3:54 am

Hi ClintMA,
I've got the same problem Win 7 LC 8 dp 13
This should be bug reported.

Simon
edit: the messagebox should be bug reported.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Problems with message box and script editor screens

Post by Simon » Sat Jan 23, 2016 4:12 am

Hi ClintMA,
Something you can test for me.
Open the Dictionary then try to open a new stack (File > New Stack).
Can you do it? I can't while the dictionary is open.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Problems with message box and script editor screens

Post by Thierry » Sat Jan 23, 2016 9:19 am

ClintMA wrote:Many thanks, Thierry.

My guess is that the message box is intentionally initially set to be off screen, and that clicking on the "Message Box" button below the menu bar is supposed to move the the message box location so that it can be seen. But this is not happening for some reason.

Any further suggestions?
Hi CLint,

First, I don't have LC 8.x on Windows in front of me.

My suggestion is that the latest tester in Edinburgh had a much bigger screen that yours :)

If setting the loc or rect or visible of the "Message Box" do not work,
then I don't know what else you could do. ( Bug as Simon said?)

Good luck,

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Problems with message box and script editor screens

Post by jacque » Sat Jan 23, 2016 10:24 am

Try:

Code: Select all

set the loc of stack "message box" to the screenrect


Then you should be able to move it where you want it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Problems with message box and script editor screens

Post by Thierry » Sat Jan 23, 2016 11:31 am

Code: Select all

set the loc of stack "message box" to the screenrect
Mmm, typo?

Code: Select all

set the rect of stack "message box" to the screenrect
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Problems with message box and script editor screens

Post by jacque » Sat Jan 23, 2016 4:35 pm

Lol. Auto-complete. And we don't really want the rect that large.

Should have been "to the screenloc"
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Problems with message box and script editor screens

Post by FourthWorld » Sat Jan 23, 2016 5:33 pm

The "DP" in the version string stands for "Developer Preview", made available for experienced developers to test with.

If you need a stable build you'll want to use a version with "Stable" in its name; the most recent "Stable" build is 7.1.1:
http://downloads.livecode.com/livecode/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

ClintMA
Posts: 39
Joined: Thu Jan 21, 2016 2:52 am

Re: Problems with message box and script editor screens

Post by ClintMA » Sun Jan 24, 2016 12:25 am

Thanks for all the responses. The forums are one of the most valuable features of LiveCode, thanks to the selfless help provided by so many other users.

I will post the problem with the message box in the "Bug Triage" forum. It had occurred to me that this might be a bug, but using the message box is such a frequent need in LiveCode, I would have expected the bug to have been reported within hours of the release.

Given the problems that I've encountered just trying to get going with version 8, I have taken the advice given here and downloaded the latest stable version of 7.

ClintMA
Posts: 39
Joined: Thu Jan 21, 2016 2:52 am

Re: Problems with message box and script editor screens

Post by ClintMA » Fri Feb 05, 2016 1:33 am

Simon,

I apologize for taking so long to reply to post of last week. I made the mistake of saying to myself that I would do it tomorrow, and by the time tomorrow came I had forgotten about it. (Since I'm 74, that may not be too surprising).

With regard to your post: Yes, I can open a new stack when the Dictionary is open (both when it is showing on the screen and when it is minimized). I'm using Windows 7 and the Community 7.1.1 version of LiveCode.

I have no idea why this would be happening to you, unless your Dictionary palette has somehow been corrupted. Hopefully you have already found a solution.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Problems with message box and script editor screens

Post by Simon » Fri Feb 05, 2016 2:22 am

Hi CLint,
Thanks for getting back to me.
No, the problem is specific to LC 8 DP 13 & 14 for me. No troubles with LC 7.1.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ClintMA
Posts: 39
Joined: Thu Jan 21, 2016 2:52 am

Re: Problems with message box and script editor screens

Post by ClintMA » Fri Feb 05, 2016 11:20 pm

Simon,

I just opened LiveCode 8.0 dp 13 and then opened the Dictionary. I was able to create a new stack without problem -- whether the Dictionary was visible or minimized.

My problem with the Dictionary in dp 13 is that when it opens, the panes for the tags and definitions to do fill the whole window. This is only a minor annoyance for the definitions since that pane has scrolls bars (although the bottom arrow is missing), but the tags pane has the bottom portion cut off with no way to get to the tags at the bottom of the list. Do you see this in your installation of dp 13?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Problems with message box and script editor screens

Post by Simon » Fri Feb 05, 2016 11:48 pm

Hi CLint,
OK must be something to do with my setup, I won't bug everyone about any more.

Once you re-size the dictionary it will hold the shape and location. Hover the cursor over the LC icon in the task bar then move the cursor over the dictionary image and right click will give you the option to move the window down (just use the down arrow) so you can drag it's corner to a smaller size. Can't do this with the messagebox however grrr.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply