Gamestudio Links
Zorro Links
Newest Posts
OptimialF values in .fac file mostly zero
by SBGuy
6 minutes 52 seconds ago
wanted to share my working player/camera control action C++ app
by rayp
Today at 14:37
Votes for future features
by AndrewAMD
Today at 14:06
Transaction Cost
by jcl
Today at 09:42
Indicator RSI
by jcl
Today at 09:36
Is it possible to do Trade Mode without live brokerage account?
by AndrewAMD
Yesterday at 20:36
MED (or any tool) - change base frame / pose of frame 0 ?
by rayp
Yesterday at 17:55
AUM Magazine
Latest Screens
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Who's Online
14 registered (SBGuy, kvm, cepturion, alibaba, Mio, AndrewAMD, ChrstphFr, 20BN, 2 invisible), 465 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Mio, thewalruss, jiffdbf, jgtrader, Chefmac
18081 Registered Users
Topic Options
Rate This Topic
#469621 - 11/25/17 13:50 Window Scaller +position
CocaCola Offline
Senior Member

Registered: 03/04/14
Posts: 343
hello,
i wont load window position and sice from a file, at start.
I use video_window to change the window parameter.
in the code underneath I have nearly same resolutions, but I get my panel double sizes . what do video_window in realy?
Code:
function main()
{
	wait(1);
	vec_set(screen_size,vector(1920,1080,0));
//	video_mode = 9;
//	video_screen = 0;
	wait(1);
	video_window(vector(2,2,0),vector(1900,1000,0),2,NULL);
...




Edited by CocaCola (11/25/17 22:12)

Top
#469627 - 11/25/17 22:19 Re: Window Scaller +position [Re: CocaCola]
CocaCola Offline
Senior Member

Registered: 03/04/14
Posts: 343
I have nowI have zip the project hereI have download the project here
https://www.dropbox.com/s/3mxkdgxwnniiuvs/WindowVectors.zip?dl=0
It is a empty project. You can activate with esc the esc_menue an closet these by the smal button on the bottom right sight of the window.
for the scale mode you click on the middle botton, in posmode, you can switch beween change size or window position by the righn mouse botton, by clicking LMT you acept the window POS and Size.
my problem is now, how can I make, the mouse is staying in the game window?

Top
#469775 - 12/08/17 07:37 Re: Window Scaller +position [Re: CocaCola]
codeChallenged Offline
Newbie

Registered: 12/16/09
Posts: 15
Loc: Saskatchewan Canada
#include <windows.h>

void lock_mouse() //keep mouse in game window
{
RECT rect;
GetClientRect(hWnd,&rect);
ClientToScreen(hWnd,&rect);
ClientToScreen(hWnd,&rect.right);
ClipCursor(&rect);

}

Top


Moderator:  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de