Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

PureGDK / hDBWnd=OpenDBWnd ????

Author
Message
azzido
15
Years of Service
User Offline
Joined: 16th May 2008
Location:
Posted: 28th Dec 2009 23:06
Hi there,

sorry about my stupid question:

Is there only the possibility to use DB in PureBasic with OpenDBWnd() ?

Why i must have a Window instead of a Fullscreen??
Its a pitty - because when u have 2 TFTs and your application with pureGDK ist on TFT 1 Maximised to Fullscreen - and you control a camera with mouse - the mouse will get to TFT 2?

ATM i open a ogre screen behind the PureGDK Screen to solve this
Mistrel
Retired Moderator
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 29th Dec 2009 00:27 Edited at: 29th Dec 2009 00:27
Because PureGDK does not support fullscreen exclusive you will have to handle certain situations yourself, like mouse movements for multiple monitors.

One possible solution would be to use the Win32 API to lock the mouse cursor to the DBP window and prevent it from moving onto other another monitor.

Simply check to see if the mouse has left the bounds of the window. And if it has, move it back.

There is an API function to lock the mouse to a window. I think it's SetCapture, but I can't remember off the top of my head.

Login to post a reply

Server time is: 2024-04-18 02:34:09
Your offset time is: 2024-04-18 02:34:09