Welcome to the Southern African Autolisp Website.

Afra-lISP


You are Visitor Number since 11th June 1999.


row.

row

Syntax:

	: row {
	  alignment children_alignment children_fixed_height
	  children_fixed_width fixed_height fixed_width
	  height label width
	}

Note: This Tile Cluster is for display purpose only.
No AutoLips coding has been included for the Active Children Tiles.


DCL Coding:

lisp48ae : dialog {				//dialog name
          label = "row";			//give it a label

	: row {					//define row

	: toggle {				//define a toggle
	  key = "tog1";				//give it a name
	  label = "Whiskey";			//give it a label
	  value = "1";				//switch it on
	}					//end toggle

	: toggle {				//define a toggle
	  key = "tog2";				//give it a name
	  label = "Wine";			//give it a label
	  value = "1";				//switch it on
	}					//end toggle

	: toggle {				//define a toggle
	  key = "tog3";				//give it a name
	  label = "Beer";			//give it a label
	  value = "0";				//switch it on
	}					//end toggle

	}					//end row



        ok_cancel ;				//predefined OK/Cancel button

        }					//end dialog


AutoLisp Coding:

(defun C:lisp48ae ()
;define function	

  (setq dcl_id (load_dialog "lisp48ae.dcl"))
  ;load dialog

  (if (not (new_dialog "lisp48ae" dcl_id)
  ;test for dialog

      );not

    (exit)
    ;exit if no dialog

  );if

  (action_tile
      "accept"	
      ;if O.K. pressed
					
      "(done_dialog) (setq userclick T)"
      ;close dialog, set flag
	
   );action tile

    (action_tile
    "cancel"
    ;if cancel button pressed

    "(done_dialog) (setq userclick nil)"	
    ;close dialog, lower flag

    );action_tile

  (start_dialog)	
  ;start dialog
				
  (unload_dialog dcl_id)
  ;unload	

  (if userclick
  ;if OK selected

     (alert "You selected OK")
     ;inform the user

     (alert "You selected Cancel")
     ;inform the user

  );if			

 (princ)

);defun

(princ)



All Tutorials and Code are provided "as-is" for purposes of instruction and
utility and may be used by anyone for any purpose entirely at their own risk.
Please respect the intellectual rights of others.
All material provided here is unsupported and without warranty of any kind.
No responsibility will be taken for any direct or indirect consequences
resulting from or associated with the use of these Tutorials or Code.

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