Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restoring "Cancel" in dialog
#1
Hi,

When initially designing a dialog, I thought I only needed "OK" and deleted the cancel button. How can I restore/recreate a button with IDCANCELfunctionality?

Thanks!
#2
Sorry, figured it out. (manually copyied ID1 and made ID2 to restore the missing cancel button, repositioned in dlg editor).
#3
you dont need the Ok Button you can take that off and just rename the cancel to close , i dont use ok button pretty much does the same thing unless your needing it to change or the ok button runs it i just you buttons to run macros/functions and take the ok and cancel off just use the x to close dialog
#4
Yes, usually that's what I do, but in this case, the OK processes a bunch of code, and I needed the cancel button to allow the user to exit without taking that next step.

Got it all worked out now, thanks though!


Forum Jump:


Users browsing this thread: 1 Guest(s)