Messaage Box problem -- LC8 (dp13)

If you find an issue in LiveCode but are having difficulty pinning down a reliable recipe or want to sanity-check your findings with others, this is the place.

Please have one thread per issue, and try to summarize the issue concisely in the thread title so others can find related issues here.

Moderator: Klaus

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

Messaage Box problem -- LC8 (dp13)

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

I originally posted this in the Beginners forum, but it was suggested there that I post it as a possible bug:

I installed a fresh version of LC8 (dp13). The message box was missing. Clicking on the "Message Box" button below the menu bar did nothing visible.

So I created a new stack on which I placed one button and one field:

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.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Messaage Box problem -- LC8 (dp13)

Post by [-hh] » Sun Jan 24, 2016 12:33 pm

I can confirm such and similar 'misbehaviour' of the message box.
This is also (often) with 6.7.8 and 7.1.1.

Please report it ( http://quality.livecode.com/ )

Meanwhile I use in the card's script:

Code: Select all

on msgLogBefore str
  set topleft of window "message box" to \
        (20, -128 + item 4 of the screenrect)
  show msg; put (str &cr& msg)
end msgLogBefore
shiftLock happens

Post Reply