Release focus from control

Post

Posted
Rating:
#1 (In Topic #918)
Avatar
Regular
Technopeasant is in the usergroup ‘Regular’
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?

/comp/gb.qt4/control/grab - Gambas Documentation
Online now: No Back to the top
1 guest and 0 members have just viewed this.