Vismut65 Posted December 21, 2011 Posted December 21, 2011 Hi, If I make a wrong choise in a pop_up list in the dialog, after pressed "OK" button I have an alert warning whats wrong. But after I pressed "OK" in the alert box I want to get back to the dialog again with my previous values. Someone who know how to do that? /Dan Quote
Tharwat Posted December 21, 2011 Posted December 21, 2011 maybe things like this ... e.g . (progn (alert "You have taken a wrong turn ") (c:myroutine) ) My above example shows that you could recall your dialog by calling the same name of your routine name . Hope this help . Tharwat Quote
Vismut65 Posted December 21, 2011 Author Posted December 21, 2011 Thank you Tharwat that works. Is it possible to get my dialog box back with my previous choises?. I don't want to make all the choises again. Quote
Tharwat Posted December 21, 2011 Posted December 21, 2011 Thank you Tharwat that works. You're welcome . Is it possible to get my dialog box back with my previous choises?. I don't want to make all the choises again. I expected to read this . I guess it is possible , but I am not that familiar with DCl codes , and for sure lots of gentlemen could help you with it and it is just a matter of time . So just be patient . Tharwat Quote
Vismut65 Posted December 21, 2011 Author Posted December 21, 2011 OK Tharwat I wait and see Thank you:) Quote
Lee Mac Posted December 21, 2011 Posted December 21, 2011 Use a while loop to test the return of the start_dialog function; the done_dialog status argument for the OK / Cancel buttons is, by default, 1 & 0 respectively, so you can test whether the user has exited the dialog by pressing OK / Cancel (or any other button with a done_dialog call). Quote
Vismut65 Posted December 22, 2011 Author Posted December 22, 2011 Thank you Lee Mac I will test our solution:) Quote
MSasu Posted March 6, 2012 Posted March 6, 2012 There are other solutions to warn about a wrong input at run-time – display an error message after the user left validated control (action_tile) by either: An errtile control. A sub-dialog box in front of main one. The dos_msgbox function from DOSLib pack (personally I will avoid this since can easily go behind main dialog). Regards, Mircea 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.