Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: add dialog

  1. #1
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770

    add dialog

    I'm trying to add a dialog message to this when it does not find the file but not having much luck .
    I'm not real good yet with the functions so that maybe my problem.
    Code:
    -- Callback function, used when a match is found
    function found (filename)
    
        -- Display a dialog to the user
        Dialog.Message("FOUND!!", filename .. " was found!!\r\nNow terminating find . . .");
        filename = File.Run("notepad.exe", "", "", SW_SHOWNORMAL, false);
    
        -- return false (end the find action)
        return false;
       end 
    
    
    -- Show the status dialog
    StatusDlg.Show();
    
    -- Find any filename containing 'iccvid.dll'.  Call function 'found' whenever a match is found 
    File.Find("c:\\", "iccvid.dll", true, false, nil, found);
    
    -- Hide the status dialog
    StatusDlg.Hide();

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    just add a "if" statemnt to the file.find action

    -- Callback function, used when a match is found
    function found (filename)

    -- Display a dialog to the user
    Dialog.Message("FOUND!!", filename .. " was found!!\r\nNow terminating find . . .");
    filename = File.Run("notepad.exe", "", "", SW_SHOWNORMAL, false);

    -- return false (end the find action)
    return false;
    end


    -- Show the status dialog
    StatusDlg.Show();

    -- Find any filename containing 'iccvid.dll'. Call function 'found' whenever a match is found
    fFind = File.Find("c:\\", "iccvid.dll", true, false, nil, found);

    -- Hide the status dialog
    StatusDlg.Hide();

    if fFind == nil then
    result = Dialog.Message("Notice", "could not find the file.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    Wonderful. thank you for the help.

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    no problem bobby, always glad to help
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. Displaying a Save As Dialog
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 03:53 PM
  2. Using the Status Dialog Window
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-22-2003, 02:52 PM
  3. HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 Installation
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 01:55 PM
  4. INFO: The Explore Button on the Distribution Folder Dialog
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-11-2002, 12:06 PM
  5. HOWTO: Add Password Protection to Your Application
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 03:39 PM

Posting Permissions

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