Page 1 of 1

Detecting focused object

PostPosted: Thu Jul 09, 2015 9:41 am
by stu
Hello,

I was wondering if theres a way of knowing what object withing the current page has focus?

Regards/

Re: Detecting focused object

PostPosted: Thu Jul 09, 2015 10:17 am
by Neosoft Support
The global [FocusedObject] variable contains the name of the object that has the input focus.

Note: This variable is primarily intended to be used in scripts to identify which object is active. It is not a "live" variable and will not automatically update the screen whenever an object is clicked.

Re: Detecting focused object

PostPosted: Thu Jul 09, 2015 10:49 am
by stu
aha!

so what about the rectangle object when its being used as a grid by dbpro?
I noticed you can actually tabulate into a grid and use your arrow keys on it but I'm looking for a way for "displaying" somehow that the cursor is in the grid... you know...

(?)

Re: Detecting focused object

PostPosted: Thu Jul 09, 2015 2:50 pm
by Neosoft Support
Maybe you could use dbpGetActiveField?