Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 04/05/26 10:06
TMFs on options in live trading
by Spirit. 03/26/26 19:52
TDAmeritrade plugin with new Schwab accountt?
by AndrewAMD. 03/24/26 17:11
Black Book, 4th edition
by jcl. 03/17/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (vince, AgentPot), 3,989 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ondrej, mredit, vestriaa, Lukudo, mldenoiser
19205 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Window Scaller +position #469621
11/25/17 12:50
11/25/17 12:50
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
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);
...



Last edited by CocaCola; 11/25/17 21:12.
Re: Window Scaller +position [Re: CocaCola] #469627
11/25/17 21:19
11/25/17 21:19
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
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?

Re: Window Scaller +position [Re: CocaCola] #469775
12/08/17 06:37
12/08/17 06:37
Joined: Dec 2009
Posts: 20
Saskatchewan
C
codeChallenged Offline
Newbie
codeChallenged  Offline
Newbie
C

Joined: Dec 2009
Posts: 20
Saskatchewan
#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);

}


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

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

Powered by UBB.threads™ PHP Forum Software 7.7.1