Jump to content

Recommended Posts

Posted

Might be a silly question but is there a way I can add a textbox in the CUI so the user can type in text height and then this input will be read by the other lisps?

Posted (edited)

You can have lisp in a CUI I have set a variable then load a lisp using that variable.

Simple answer

^c^C^p(setvar 'textsize (getreal "\nEnter text height "))(load "mylisp")

 

There is a textbox input trying to remember it someone else will post. It is a built in function.

 

Or can do something like this, another DCL example is at Afralisp.

^c^c^p(if (not AH:getvalsm)(load "Multi Getvals.lsp"))(setq ans (AH:getvalsm (list "Enter text height " "height" 5 4 "2.5")))(load "mylisp")

image.png.2ba9ba402995041b4a8dbfda11ac7520.pngMulti GETVALS.lsp

Edited by BIGAL

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...