int checkDialogFocus()
True if the dialog has keyboard focus, false otherwise.
Checks if the dialog has keyboard focus.
%fml ctl[4]: STATICTEXT, Text="" OnCtl(n): { // Move the mouse over the preview // to display if the dialog is in // focus or not. if (checkDialogFocus()) { setCtlText(4, "Has focus"); } else setCtlText(4, "Out of focus."); return false; }