Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2009
    Posts
    172

    not show dialogex in callbackfunctions

    hi, test this code:

    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...

  2. #2
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    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?
    Dermot

    I am so out of here

  3. #3
    Join Date
    Jan 2009
    Posts
    172
    is an example only to find that does not show the DIALOGEX.

    does not matter that needs to function for

  4. #4
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    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.
    Dermot

    I am so out of here

  5. #5
    Join Date
    Jan 2009
    Posts
    172
    aaahh ok

    thanks for the info

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts