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
|