PDA

View Full Version : not show dialogex in callbackfunctions


Tomasin
10-12-2009, 03:40 PM
hi, test this code:

StatusDlg.Show(MB_ICONNONE, false);

function show(FoundPath)

Label.SetText("Label1",FoundPath);

for n = 1, 15 do
Label.SetText("Label1",n.." - "..FoundPath);
result = DialogEx.Show("Dialog1", true, nil, nil);
end
return true
end

File.Find("C:\\", "*.*", true, false, nil, show);

StatusDlg.Hide();

not show Dialog1... :huh

Dermot
10-12-2009, 04:09 PM
Your code makes no sense. Why would you want a loop inside the callback function? Why would you want to show the dialog 15 times when a file is found?

Tomasin
10-12-2009, 04:18 PM
is an example only to find that does not show the DIALOGEX.

does not matter that needs to function for

Dermot
10-12-2009, 04:20 PM
It's not a bug, it is by design. You cannot show a dialogex while a status dialog is visible.

Fix: Made it so that DialogEx's cannot be shown when a status dialog is visible, nor can they be closed while a status dialog is visible.

Tomasin
10-12-2009, 04:21 PM
aaahh ok

thanks for the info :yes:yes