PDA

View Full Version : StatusDlg.IsVisible?


stickck
03-04-2008, 08:44 PM
I might be missing something somewhere. If a user hits the Esc key, it closes the StatusDlg but doesn't trigger the Cancel button scripts. It would be nice to check if StatusDlg is visible or just have it programmed that the Esc key triggers the Cancel button. I would just use the On Key here but there isnt one for the StatusDlg.


If I'm missing something here, could someone please point me in the right direction?

thanks

Chris

Darryl
03-10-2008, 09:55 AM
Thanks, we'll look into that.

REF: 17292

Darryl
03-11-2008, 08:36 AM
I believe that you are mistaken for this one. This was updated in another product and seems to be fixed in AutoPlay as well as of version 7.1.1005.0. If the cancel button is visible, the StatusDlg.IsCancelled action does react to the Esc key being pressed, just like it would if you pressed the button. If it isn't visible, it will just be ignored.

stickck
03-11-2008, 08:48 AM
yea, that's my problem. if i need to hide the cancel button, then i dont want the user to be able to close the dialog which would stop the process that was running. but, right now, i can hit esc (with the cancel button hidden) and it closes the dialog but i does NOT stop the process. The process keeps running in the background. I found this because i have a dialog message popup and prompt the user if the current directory is the correct directory to use.

So it should ignor the Esc key if the Cancel button is not visible? if that's what it should do, it's not working that way.

I'll post a sample if you need.

Chris

stickck
03-11-2008, 09:22 AM
Darryl,

I owe you a beer / soda! I must have started this project before you guys released this last update. You're right! It works correctly now.

I'm so sorry to waste you time.

Thanks for the help with this.

Chris

http://upload.wikimedia.org/wikipedia/en/5/51/Simpsons_the_homer_wo_hoo_duff_beer.png

Darryl
03-11-2008, 10:03 AM
No problem at all, I initially thought that the fix wasn't shared with AutoPlay, so I'm happy to hear that it is indeed working correctly.

stickck
03-11-2008, 10:43 AM
I'll mess with it some more tonight to make sure again.

chris