Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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.

Posted
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

Posted

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

Posted

Thank you Lee Mac I will test our solution:)

  • 2 months later...
Posted

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

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