Mouse Input

There are a number of ways that a program can detect mouse activity:

Which Text Entry Was Most Recently Clicked?

The user may click a text entry area to signal that they wish to enter text there. Any text entered by keyboard will then go to that component. To find out which component is the current recipient of text input, check the system focus. For more information about the focus, see See Focus and Active Windows .

Mouse Clicks and Dialog Boxes

There are some dialog boxes that prevent the user from clicking outside their boundaries; which perhaps don't even allow the user to work with windows of other applications. If you have a Dialog or Floater component that should prevent the user from working with other windows, change its type property.

By means of this property, you may make a dialog box modal or system-modal. If the user attempts to click outside of the dialog box on another window, the system ignores the click and sounds an error beep.