PDA

View Full Version : BasicDialog.afterShow ?


digerata
11-06-2006, 02:55 PM
I noticed some methods in BasicDialog:

beforeShow
beforeHide

I assumed that these were event handlers? Regardless, that prompted the thought about being able to trigger a function call when the dialog has finished its animation on both hide and show.

I was trying to do something CPU intensive at the same time as animating the dialog being shown (also when it was closed). I was hoping that there might be some way I could wait to do the CPU intensive task until after the dialog animation was complete.

Is this possible. Is there something obvious that I missed?

Thanks!

jack.slocum
11-06-2006, 05:48 PM
dlg.on('beforeshow', yourFunction);

digerata
11-06-2006, 07:00 PM
Sorry, I wasn't concise.

Would it be possible to add two events:

afterShow
afterHide

?

My problem is that I want to trigger the processing after the dialog has been completely shown.

Thanks!

jack.slocum
11-06-2006, 07:22 PM
dlg.on('show', yourFunction)

digerata
11-06-2006, 07:41 PM
Aaahhhhhaaaah.

Thanks, sorry for the obvious questions!

jack.slocum
11-06-2006, 08:13 PM
That's ok. I like the easy ones. :)