PDA

View Full Version : BasicDialog.afterShow ?



digerata
6 Nov 2006, 11:55 AM
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
6 Nov 2006, 2:48 PM
dlg.on('beforeshow', yourFunction);

digerata
6 Nov 2006, 4: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
6 Nov 2006, 4:22 PM
dlg.on('show', yourFunction)

digerata
6 Nov 2006, 4:41 PM
Aaahhhhhaaaah.

Thanks, sorry for the obvious questions!

jack.slocum
6 Nov 2006, 5:13 PM
That's ok. I like the easy ones. :)