Older Newer
Sat, 14 Dec 2019 11:39:07 . . . . SyneRyder [First function definition]


Changes by last author:

Added:
= checkDialogFocus =

== Syntax ==

int checkDialogFocus()

== Return ==

True if the dialog has keyboard focus, false otherwise.

== Description ==

Checks if the dialog has keyboard focus.

== Example ==

<code>

%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;

}

</code>