Hi, I'm just writing a quick little application to help me with my web design. Something I'd like to complete over the next week!
I'm not really want a completely resizable window, just small standard size and maximised. I've been trying the standard DBPro commands and the additional commands in the Matrix1 plugins with only limited success. The problem is the window's effective resolution/ draw area. It's fine on my main monitor at 1080p, but if I drag the window up onto my 1280x1024 monitor things get all squashed. How would I make it resize the window's resolution better?
This is what I have so far, though this version doesn't work, and it requires Matrix1.
Type Coords
X As Integer
Y As Integer
EndType
Type Window
OSize As Coords
DSize As Coords
EndType
Global W As Window
Set Window Layout 3,1,0
Do
If W.OSize.X<>Get Window Client Width() Or W.OSize.Y<>Get Window Client Height() Then Set Display Mode Get Window Client Width(),Get Window Client Height(),32,0,4,0
W.OSize.X=Get Window Client Width()
W.OSize.Y=Get Window Client Height()
set cursor 10,10
Print "Hello World!"
Loop
Or this version that doesn't crash, but still only works for my main display
Type Coords
X As Integer
Y As Integer
EndType
Type Window
OSize As Coords
DSize As Coords
EndType
Global W As Window
Set Window Layout 3,1,0
Do
If W.OSize.X<>Get Window Client Width() Or W.OSize.Y<>Get Window Client Height() Then Set Display Mode Display Width(),Display Height(),32,0,4,0
W.OSize.X=Get Window Client Width()
W.OSize.Y=Get Window Client Height()
set cursor 10,10
Print "Hello World!"
Loop
Nick
www.illuminatedfx.com
For web design and custom GUI and 3D model design services.