ObjectDCL Banner

GetFocus Method

Description

This method will return a list indicating the dialog or the control that has the current focus.

Return Values

Returns the following according to the situation:

  • A list indicating the project name, dialog box name and optionally the name of the control name
  • Nil if no ObjectDCL control or dialog have the focus.

AutoLISP Syntax

The method takes no parameter.

CopyCode imageCopy Code
(Odcl_GetFocus )

Remarks

If the control name is blank then it is the dialog box that has the focus.

Applies For

ActiveX, AngleSlider, Animation, BlockList, BlockView, CheckBox, ComboBox, DwgList, DwgPreview, Frame, GraphicButton, EditableGrid, Grid (Hatch), HtmlControl, ImageCombo, Label, ListBox, ListView, MonthPicker, Option, OptionList, PictureBox, ProgressBar, Rectangle, ScrollBar, SliderBar, SlideView, SpinButton, Splitter, TabControl, TextBox, TextButton, TreeControl, UrlLink.

Example

CopyCode imageCopy Code
; Get the control position
(Setq rValue (Odcl_GetFocus))

See Also

OnKillFocus, OnSetFocus, Control_SetFocus, Control_ZOrder