Rev Menubar location on open has moved

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Rev Menubar location on open has moved

Post by Simon » Sun Nov 04, 2007 4:52 am

Hi,
I've managed to screw something up and every time I open a stack the Revolution menubar and tools locations are different. Used to always open in the top left.
Also the "set to loc of this stack to the screenLoc" is finding a different center location for the stack.
My standalones do find the correct position.
My screen is 1280 x 1024, how do I get the menubar back up in the top left?
I see that I can change Rev though the UI elements, but before I start screwing that up as well I thought I should ask.

Thanks,
Simon

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Sun Nov 04, 2007 1:41 pm

Hi Simon,

what is the windowboundingrect in the IDE?

->messagebox->put the windowboundingrect

It might help to delete the preference file on your harddisk.

All the best,
Malte

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

Post by Simon » Sun Nov 04, 2007 7:39 pm

Hi Malte,
windowboundingrect gives me several answers each time I open and close Revolution.
92,145,1280,994
0,226,1280,994
0,321,1280,994
0,420,1280,994
Almost like it is cascading each new session.
I couldn't find a specific preference file on my HD relating to Revolution except for the rev stack found under Edit.

Any other suggestions?

Thanks,
Simon

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

Post by Simon » Fri Feb 29, 2008 11:03 pm

OK This is driving me nuts!
The rev menubar just keeps marching down the screen on each successive open/close, till on opening it's at the bottom of my screen the next time I open rev it starts back at the top.
Save stack "revMenuBar" doesn't help.

Where does windowBoundingRect get its info from?
Why is it adding approx 90 px each time?

Can anybody help with this?

Thanks,
Simon

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Feb 29, 2008 11:15 pm

Hi Simon,

I think you should give us some info about the version of Rev you use, operating system, screen resolution, plugins, etc.

Today, I restarted Rev 2.9 many times and the menubar always appeared in the same place.

The only problem I have is that if I set the topleft of the menubar to 1,0 on Windows, it does't stick.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

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

Post by Simon » Fri Feb 29, 2008 11:26 pm

Hi Mark,
Rev 2.8.1 build 472
Running on Windows XP sp2 screen res 1280 x 1024. Not running any plug-ins.

It used to work correctly and I believe that the problem occurred after I resized my screen resolution then went back to 1280 x 1024. Now I'm not positive that that is when it started, but around that time.

I have enough headaches with clients, I don't need my IDE poking at me as well.

Thanks,
Simon

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Feb 29, 2008 11:38 pm

Hi,

It is a long shot, but what happens if you delete the file "X:\Documents and Settings\User\Application Data\Runtime Revolution\Revolution <license>\Preferences\revpreferences.rev", where X is your start-up drive?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

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

Post by Simon » Sat Mar 01, 2008 12:10 am

Hi Mark,
No luck.
I've tried a complete reinstall of rev and that didn't help either.

The Rev splash screen seems to always know where the center of the screen is, just not the menubar or tool bar.

Grrr I say Grrr.

Thanks,
Simon

Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Post by Garrett » Sat Mar 01, 2008 11:25 pm

Do you use Visual Styles that did not come with Windows originally, or do you use Window Blinds?

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

Post by Simon » Sat Mar 01, 2008 11:45 pm

Hi Garrett,
My XP is stock, have to keep it that way as it's part of my test bed.

Simon

Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Post by Garrett » Mon Mar 03, 2008 9:31 pm

Well, it was a shot in the dark anyway. I've seen this effect on programs before with miscoded visual styles and themes for Window Blinds.

Post Reply