
		    	FOCUS
			=====

1. How to get a pointer to an active window (dialog box)

   Ans.   use mdl mdlWindow_getInputFocus ()


2. How to get a pointer to an active item in the window

   Ans.   use mdlDialog_focusItemIndexGet ()


3. How to get the current cursor position of active text item

   Ans.   look at cursorIndex of BasicText(single line text item) or
          UserMLText (multi-line text item) data structure.

	  use mdlDialog_textGetBasicText and mdlDialog_textGetUserMLText
	  to get a pointer to the data structure.   These functions are
	  included in ditemlib.ml.

	  But depending on the version of ditemlib.ml, 
	  mdlDialog_textGetUserMLText may not be available.
	  If it is the case, do the following:

	  textP = (DItem_multilineText *) diP->rawItemP;
	  mltextP = (UserMLText *) textP->uMLTextP;

	  For details, look at test_multilineText of focus.mc.
