AfraLisp Blog

The AutoLisp/Visual Lisp/VBA Resource Website

AfraLisp Blog

Home Newsletter Utter Rubbish Coding Tips AutoCAD Tips Contact Downloads WAUN

fixed_width_font

fixed_width_font

Dialogue with Fixed Width Font.

This attribute specifies whether a 'list_box' or 'popup_list' will display text in a fixed pitch font. This allows for easier spacing and tab alignment of columns.
This attribute is valid only for Windows/NT.


DCL Code Sample 

lisp49ai : dialog {				//dialog name
          label = "fixed_width_font" ;		//give it a label

	: list_box {				//define a list box
	  key = "lb1";				//give it a name
	  label = "Select Bolt Type:";		//give it a label
	  allow_accept = true;			//allow double clicking
	  tabs = "8 16 24";			//set tabs
	  list = "M20\t40LG\tGr. 8,8\n
		  M16\t30LG\tGr. 4,6\n
		  M30\t60LG\tGr. 8,8\n
		  M12\t35LG\tGr. 4,6\n
		  M8\t45LG\tGr. 8,8";		//define the list
	  height = 6;				//give it a height
	  fixed_height = true;			//fix the height
	  width = 20;				//give it a width
	  fixed_width_font = true;		//fix the font width
	}					//end list box

        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