Windowed mode clipped of at top of screen. ???

BlitzMax Forums/BlitzMax Beginners Area/Windowed mode clipped of at top of screen. ???

Galdy(Posted 2012) [#1]
This is creating a window that is drawn off the top of the screen so i can't reach the top bar of the window. Not sure why.

Strict
Graphics 1600, 1200

Global FileOpGUI:TImage = LoadImage ("C:DungeonCrawlGameMap editorFileOpGUI.bmp")

Repeat
Cls
DrawImage (FileOpGUI, 0, 0)
Flip

Until KeyHit(Key_escape)


GaryV(Posted 2012) [#2]
What is the resolution of your desktop?


Galdy(Posted 2012) [#3]
Desktop is 1920x1080
It seems to draw off the top of the screen when the y resolution is equal to or more than desktop y resolution. Is that normal?


xlsior(Posted 2012) [#4]
It seems to draw off the top of the screen when the y resolution is equal to or more than desktop y resolution. Is that normal?


...Yes?

you are trying to show more pixels than fit on the screen. They have to go -somewhere-.


GaryV(Posted 2012) [#5]
FYI, since BMax sizes the graphics window by client size and not actual size, your window is actually larger than 1600 x 1200

Your issue is a window can't be bigger than your desktop. Well, it can be bigger, but as you can see (or rather can't see LOL) it is not something you should be doing. You also have to take into account the taskbar (or whatever it is called now) size and the size of the border of your window, including title bar, etc.

Don't make the window so darn big and use a scrolling canvas area to display the map portion of your map editor. There should be a scrolling canvas example included with Max.


Galdy(Posted 2012) [#6]
Ok. Never mind. The size of my gui was actualy 1280x1024. Ug. brain fart.lol.

Last edited 2012