oi10:presentation_server:getfocusedcontrol_method_window

GETFOCUSEDCONTROL Method (Window)

Returns the ID of the control that has the focus if the WINDOW is active, or, if the WINDOW is not active, the ID of the control that will receive the focus when it is.

FocusCtrlID = Exec_Method( WindowID,             

                              "GETFOCUSEDCONTROL", 

                              NoInternal )
 
NameRequiredDescription
NoInternalNoIf TRUE$ then only controls not marked as "Internal" will be returned. Defaults to FALSE$.

The name of the control that is currently focused or will receive the focus when the WINDOW is activated.

Executing this method is essentially the same as using the "get" operation in the WINDOW FOCUS property to return the current focus control for the window. However, some objects, like the cell editor an in EDITTTABLE control, are marked as "internal" and it may not be appropriate to use them when returned via the FOCUS property. In this case it is better to use the GETFOCUSEDCONTROL method and the NoInternal parameter to return the parent non-internal object ID instead.

 
$Insert Logical
   
   //// Return the focused control for the window, resolving it to a non- //
   //// internal ID as needed.//

   FocusCtrlID = Exec_Method( @Window, "GETFOCUSEDCONTROL", TRUE$ )
 
 
 

Common INTERNALOBJECT property, Common GUI FOCUS property, SYSTEM FOCUS property, WINDOW FIRSTFOCUS property, WINDOW FOCUS property, WINDOW ACTIVATED event, WINDOW INACTIVATED event.

  • oi10/presentation_server/getfocusedcontrol_method_window.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1