GRID.EnableRestoreWindowFocus

Previous  Next

 

status = GRID.EnableRestoreWindowFocus( BYVAL nControl AS INTEGER,

                                        BYVAL bRestore AS INTEGER ) AS INTEGER

 

 

 

 

The Grid will keep the window focus when activated by mouse or keyboard by default.  This will allow the Mouse Wheel to work properly without any application activation.  However, some applications may not work properly without restoring the focus to calling application.  Use this function to override the default.

 

Warning ! Advanced Function and should be used with care.

 

Example:

 

nControl = GRID.CREATE( "My Grid", WS_VISIBLE+WS_CAPTION, -640, 0, 0, 480 )

GRID.EnableRestoreWindowFocus( nControl, FALSE )