Eduardo Celiz Posted January 18, 2021 Posted January 18, 2021 (edited) Hello, I am sending a lisp with a dcl box and I have the inconvenience of not being able to return from one dcl to another, that is, I use the select button, the ideal is to use the <back button and return to the previous dcl, however what my code does is to exit or cancel and what I want is to return to the previous window,I hope you can help me. Edited January 21, 2021 by Eduardo Celiz Quote
BIGAL Posted January 19, 2021 Posted January 19, 2021 You can have child dcl ie pick a button and a new dcl will open over the top of the existing. 1 Quote
Steven P Posted January 19, 2021 Posted January 19, 2021 I am sure I read something about this on Lee Macs website. You can create a child DCL like BigAl shows above - I do this for a few things, but i think Lee wrote something that you can hide tiles and make them visible on the fly depending on what the user chooses. Have the back button as a tile that changes the visibility state of which tiles you want to display. Fairly sure it was on Lees website, but it might have been on here a couple of years ago, I can't quite remember now I am typing. it isn't something I have needed to do so don't have an example or reference where to look, sorry. Quote
Tharwat Posted January 19, 2021 Posted January 19, 2021 You can explore the following link. Nesting Dialog Boxes Quote
Eduardo Celiz Posted January 19, 2021 Author Posted January 19, 2021 and if you look at the code you will see that I am already trying to use what they indicate but I find an error when wanting to return to the main dcl that is my problem to which I go to you for help since I cannot find the error or the solution Quote
pkenewell Posted January 19, 2021 Posted January 19, 2021 (edited) The first thing I see right off is that: 1) You have 2 dialogs being called with the same DCL name "PREVIEW". The dialogs must have unique names I believe. 2) You are using the same variable name "dcl_id" to load the 2 dialogs with no localization of your variables. Your variables are global and will overwrite each other if not localized to the context of the calling function. I recommend you both localize your variables and use 2 different variable names. Check out these links for basic AutoLISP variable localization http://www.lee-mac.com/localising.html https://www.afralisp.net/autolisp/tutorials/the-define-function.php Edited January 19, 2021 by pkenewell Quote
BIGAL Posted January 19, 2021 Posted January 19, 2021 (edited) In the image above there are 5 DCl's and each definately has its own name and when closing there is a unique defun of what to set variables to reading the tiles in that current dcl, the tile keys are also individual to that dcl and not repeated. Edited January 19, 2021 by BIGAL Quote
Recommended Posts
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.