Silverfrost Forums

Welcome to our forums

Capturing the mouse in a %gr window

12 Jul 2007 5:37 #2053

Is there any 'official' way of capturing and releasing the mouse within the %gr callback (I'm not set_graphics_selection@), or getting the %gr window handle so that the normal SetCapture API func can be used ? I have got it working by using FindWindowEx to get a handle to the 'SalfordGraphics' window (class name) and it seems to work as expected but maybe there's a better way ?

Thanks, Alan

13 Jul 2007 6:28 #2056

%lc gives the handle of the previous control.

13 Jul 2007 2:28 #2062

Doh! Of course. Thanks Paul.

Please login to reply.