PDA

View Full Version : Dialog box - help with closing and opening


daoud
06-10-2009, 10:17 AM
I'm trying to close and open one dialog box from another and can't seem to figure it out. Is there any way this can be achieved.

I've tried using on a text link...

result = DialogEx.Show("Participant commercial", true, nil, nil);
result = DialogEx.Close(0);

but it closes the current dialog box and will not open up the other dialog box.

Imagine Programming
06-10-2009, 11:06 AM
In the dialog you want to close, place the next:
On Show

DialogToClosehWnd = DialogEx.GetWndHandle();


From the place you want to close it from, place the next:


if(DialogToClosehWnd)then
Window.Close(DialogToClosehWnd, CLOSEWND_SENDMESSAGE);
end

daoud
06-10-2009, 01:24 PM
It worked like a charm.