Jump to content

Create a multi selection input.


Perifanos

Recommended Posts

Hello everyone.

 

Since I am new to autolisp, please bare with me.

 

I need to do the following:

Create some choices (big|med|small) and have the user select his choice with the mouse which then will be written in a variable.

 

Any suggestions? :?

Link to comment
Share on other sites

If you want mouse pick then you will need a dialouge box, a couple of choices do you want a square with a label or a "radio button" with label beside ? please advise There are other methods such as cheat way using a yes no cancel box

 

 (SETQ reply (ACET-UI-MESSAGE "Big Med Small Choose Button "
                             "Perifanos Dialog"
                             (+ Acet:YESNOCANCEL Acet:ICONWARNING)
            )
)
;; Yes = 6
;; No = 7
;; Cancel = 2
(cond ((= reply 6)
 (ALERT "Big")
        ;; More 1 
 )
((= reply 6)
 (ALERT "med")
        ;; More 2  
 )
((= reply 2)
 (ALERT "small")
        ;; More  3
 )

)

Link to comment
Share on other sites

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...