AfraLisp Blog

The AutoLisp/Visual Lisp/VBA Resource Website

AfraLisp Blog

Home Newsletter Utter Rubbish Coding Tips AutoCAD Tips Contact Downloads WAUN

initial_focus

initial_focus

Initial Focus.

This attribute specifies the the key of the tile within the dialogue box that receives the initial focus when the dialogue is started.
Possible value is a quoted string.

Default: None. 


DCL Code Sample 

lisp49t : dialog {				//dialog name
          label = "intial_focus" ;		//give it a label
	  initial_focus = "btn1";		//set focus

	: button {				//define button
	  key = "btn1";				//give it a name
	  label = "Initial Focus";		//give it a label
	  alignment = centered;			//center it
	  fixed_width = true;			//fix the width
	}					//end button

	: button {				//define button
	  key = "btn2";				//give it a name
	  label = "Not Focused";		//give it a label
	  alignment = centered;			//center it
	  fixed_width = true;			//fix the width
	}					//end button

	spacer;					//add a space

        ok_cancel ;				//predefined OK/Cancel button

        }					//end dialog
 
The AutoLisp/Visual Lisp/VBA Resource Website

Copyright 1999-Perpetuity by AfraLisp

All rights reserved.
Information in this document is subject to change without notice.
Site created and maintained by Kenny Ramage

The AutoLisp/Visual Lisp/VBA Resource Website