Game Development Community

Problem with menu bar and mouse location under Vista

by Dave Dobson · in Torque Developer Network · 02/09/2009 (10:32 pm) · 14 replies

I'm having a problem with the 2D Game Engine Demo. The content of the window ends up partially buried under the menu bar, so I can't see the upper strip of buttons. What's worse, the mouse clicks are located as if the graphical content of the window were shifted down below the menu bar, so I actually have to click below where a button is displayed to activate it.

This is not making me feel like buying the full product is a good idea, if the editor can't even handle displaying itself on my computer. Anybody run into this before?

Here's a screen capture:

farm4.static.flickr.com/3412/3268969876_e186baa71a_o.jpg

About the author

Recent Threads


#1
02/09/2009 (10:45 pm)
i've seen something similar where the "hot spot" of the mouse cursor is offset by about the same amount. i'll bet if you turn off Aero you'll be fine.
#2
02/10/2009 (8:36 am)
Thanks for the tip - I'll have to try it out when I get home. Does this mean that games created with Torque will also have trouble with Aero?
#3
02/10/2009 (8:50 am)
actually, taking a closer look at your screenshot, i'm doubting it's the Aero/hotspot issue. (which affects more things than just torque - google for "aero mouse hotspot bug")
in your screenshot, the "File Edit etc.." menu is torque, not windows, and the offset problem is within that, so it seems like it's within the torque system. so, hm, not sure.
#4
02/10/2009 (2:42 pm)
Well, I think it's clearly a problem with where the graphics origin is perceived to be. The black strip at the bottom of the window is the same size as the missing part at the top, so obviously whatever draws the window contents is assuming (wrongly) that the window starts at the top, of the window space, hidden by the menu bar, while whatever handles mouse events is treating the window origin (properly) as below the menu bar.
#5
02/10/2009 (10:49 pm)
Turning off Aero doesn't do anything - it's still messed up. The menu bar doesn't show up until you create or open a project, and it's at that time that the problem starts. Running with compatibility set for XP likewise doesn't help.

I think it's likely to be some kid of window-drawing or window-refresh problem within the Torque Game Builder, or maybe some kind of weird driver thing.

If there were a way to hide the menu bar, I could at least try to do stuff.
#6
02/11/2009 (8:53 am)
ya; everything inside the aero window frame is entirely torque-managed, including the menu bar, so it's unlikely the problem is windows- or driver-related. perhaps try re-installing ? (save yer data tho!)

alternatively, you could always try to dig into the TGB source and fix it by moving the origin for the rest of the content down when the menu bar is present.
#7
02/11/2009 (1:52 pm)
Great, so my answer is to debug and recompile this product before I can use it? Eesh.

I wonder if the actual purchased version would still have this problem, and if it did, if I could get some tech support - I sent a message to Garage Games a while ago about this, but I haven't gotten a reply. They may not be keen to spend much time supporting the demo, though. But I don't want to buy it if it's not going to work on my main programming computer.

Thanks for the help - I'd welcome any other suggestions.
#8
02/11/2009 (3:52 pm)
Dave,
i just installed TGB 174 (the latest demo download) on my vista box and the button bar is fine. so it might be that something went funky w/ your install.
#9
02/12/2009 (3:20 pm)
I've deleted and reinstalled. I've updated my video drivers. No help. Running out of things to try that aren't total voodoo. This bites.
#10
03/23/2009 (3:27 pm)
here's another thread about this, with a sort-of workaround: http://www.garagegames.com/community/forums/viewthread/82695
#11
03/23/2009 (3:58 pm)
Same problem here with the Demo. I did a 'fix' sorta. Go into Edit -> Preferences, and under the General Tab switch to D3D instead of OpenGL as your display driver. As soon as I did that and applied it looks fine. Switching back to OpenGL and I lose half the buttons again.

Not sure if long term I'll run into any problems going with D3D vs. OpenGL, but at least it's working.

Maybe the problem is with OpenGL and my setup? I'm running Windows 7 Beta, x64. Also running an ATI video card with the latest Catalyst drivers (9.3).

Dave, you running x64 and/or ATI with Catalyst 9.3?
#12
05/20/2009 (9:40 am)
Has there been any resolution for problems like this one? When I launch the latest TGB Demo (1.7.4 as of this post), it changes my screen resolution and loads up low and off center. I can see the Menu Bar at this point. However, alt-tabbing out of TGB and back in, it recenters and the Menu bar is completely lost. The screen cuts off at the top of the buttons. Switching from OpenGL to D3D has no effect.

I'm running XP, as opposed to Vista.

Thanks for the feedback!
#13
05/20/2009 (4:03 pm)
After digging around a bit in the documentation and forums, it seemed like the best course of action was to access the TGB console and attempt to change the resolution to something acceptable. Sure enough using setScreenMode (http://tdn.garagegames.com/wiki/TorqueScript_Console_Functions_12#setScreenMode.28_width_.2C_height_.2C_bpp_.2C_fullScreen_.29)
in the console eventually solved the problem. Of note, it didn't solve it on the FIRST try, so fiddle with it some until you see a menu bar!
#14
11/08/2011 (12:32 am)
d3d mode worked for me !