Release focus from control

Post your Gambas programming questions here.
Post Reply
User avatar
Technopeasant
Posts: 138
Joined: Saturday 13th July 2019 6:50pm
Location: Stony Plain, Alberta, Canada
Contact:

Release focus from control

Post by Technopeasant »

Hello,

I was adding mouse control to my latest game project and using the grab command to ensure that the player does not accidentally minimize the window when the mouse is not over it. This works well, however I need to know a way to get it to release the focus when the player is killed. The Gambas Wiki only mentions that the grab is ended when the user presses the esc key. Is there anyway to force this release in code?

https://gambaswiki.org/wiki/comp/gb.qt4/control/grab
Technical director,
Piga Software
http://icculus.org/piga/
Post Reply