|
3 registered members (AndrewAMD, Grant, Neb),
908
guests, and 6
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: manipulating the engine window
[Re: ventilator]
#139815
07/29/07 20:47
07/29/07 20:47
|
Joined: Aug 2002
Posts: 164 Houston
Nicholas
Member
|
Member
Joined: Aug 2002
Posts: 164
Houston
|
I have a widescreen monitor and don't like what it does when fullscreen, so I am using this to keep a good ratio no matter what the screen size: Code:
var desktop_size[2]; function main { desktop_size.x = sys_metrics(0); // SM_CXSCREEN desktop_size.y = sys_metrics(1); // place the window at position (500,300) and remove the border video_window(vector(500,300,0),nullvector,112,"Render"); // But a small engine window at this position (to fake the eninge into another applictaion) video_set(desktop_size.x-6, desktop_size.y-63, 32, 0); level_load("level.wmb"); }
that 500,300 doesn't matter. I have it setup to have a regular window with a minimize and close button. I trim down the x by 6 for window borders and the y by 63 for the taskbar. I really would like to make it sizeable, have a working maximize button, and have the standard file, edit, help style menu. If nothing else, that part can be faked, but I would also want a standard windows "file open" dialog box. I'll take a look if the other suggestions would work, but I wanted to let you know one possibilty on the window.
Black holes are where God divided by zero.
|
|
|
Re: manipulating the engine window
[Re: ventilator]
#139816
09/12/07 20:02
09/12/07 20:02
|
Joined: Mar 2007
Posts: 197
yorisimo
Member
|
Member
Joined: Mar 2007
Posts: 197
|
Did you figure out more about this? (how to modify the engine window in Lite-C pure mode) All I really want is a maximize button, but it may be useful in the future for me to also add menu buttons.
Also, when stretching the window, I'd like to adjust the resolution to match the size of the window, so that aspect ratios stay the same and everything looks nice. In order to do this, I need to know what size the engine window actually is. (screen_size is the resolution but not the actual size of the window ,ie, if you stretch the engine window, screen_size will not change.) Any ideas on this?
Last edited by yorisimo; 09/12/07 21:32.
|
|
|
Re: manipulating the engine window
[Re: yorisimo]
#139817
09/12/07 23:03
09/12/07 23:03
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi ! Look at sys_metrics in the manual. It may be what your looking for. I've seen it but have not used it up to now. Ottawa 
|
|
|
|