My revMenuBar has slipped

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
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

My revMenuBar has slipped

Post by richmond62 » Fri Sep 24, 2021 10:22 am

With LC 9.6.4 my revMenuBar appears 28 pixels lower than it should . . .

[MacOS 12 beta 7]

. . . typing this into the MessageBox

set the top of stack "revMenuBar" to 24

followed by

save stack "revMenuBar"

is pointless as, on a relaunch of LiveCode the revMenuBar stack
has slipped again.

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

Re: My revMenuBar has slipped

Post by dunbarx » Fri Sep 24, 2021 4:44 pm

Hi.

Are you working on a single monitor?

Craig

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

Re: My revMenuBar has slipped

Post by richmond62 » Fri Sep 24, 2021 5:40 pm

No, I have a 3-monitor set up, but I always use LiveCode on my main, central monitor.

And this has only happened in the last 3 days.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: My revMenuBar has slipped

Post by FourthWorld » Fri Sep 24, 2021 6:35 pm

I've seen this on Ubuntu. The height difference happens to match the height of the title bar on that platform.

I'd guess that something in the code is doing two difference placements, one using the stack rect which doesn't include the decorations, and another that does.

I've been tempted to look into the code to see where that happens, but it's been easy enough to just move the window that I forget about the issue. Besides, with devolution I go weeks at a time without seeing revMenubar at all.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

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

Re: My revMenuBar has slipped

Post by dunbarx » Fri Sep 24, 2021 6:51 pm

I am on a Mac. I recently changed my second monitor, which is why I asked. The "top" of my main monitor changed the "top" of all my LC stacks, like the menuBar. Anyway, I run a short routine to set everything right. But this routine has to run now and then, because stuff gets unstuck. It is a price I am glad to pay in order to have a 35" second monitor to hold the SE.

Craig

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: My revMenuBar has slipped

Post by jacque » Sat Sep 25, 2021 4:55 pm

I believe LC uses the windowBoundingRect to adjust its stacks. The dictionary explains how to work with that if you need to position windows outside the boundaries. It sounds like you're either getting an incorrect bounding rect or the relative positions of your monitors has changed.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: My revMenuBar has slipped

Post by richmond62 » Sat Sep 25, 2021 7:45 pm

That makes some sort of sense, because when I tell a stack:

Code: Select all

set the bottom of stack "Whatever" to item 4 of the screenRect
it bungs it somewhere down the bottom, but not at the bottom of the screen.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”