Home Image-Pro Plus Automation with Macros

Displaying dialogs on launching Image-Pro

(Originally posted by tlee on 12/3/2007)

hi

We would like to display a number of dialogs immediately after ImagePro is launched. These dialogs should also be available from the menu.

How do we do this?

 

Comments

  • (Originally posted by YuriG on 12/3/2007)

    You can add STARTUP flag (0x400) to the menu item, so the plugin will be called at IPP startup time. Check "Bit Flag Options" page of SDK help for more details.

     

  • edited June 2013

    (Originally posted by tlee on 12/3/2007)

    Hi Yuri,

    My apologies, I should have been more explicit. I had previously changed the menu:
    columnbegin &Demo
    item Demo, Invoke Demo, SDKTest, 0x0400, 1
    endcolumn

    And in InterfaceFunction added:
    switch(InterfaceId)
    {
    case 1:
    return OnInterfaceId1(hInst, hWndApp, MenuId, TrackProc);
    case -1:
    return OnInterfaceId1(hInst, hWndApp, MenuId, TrackProc);
    default:
    return -1;
    }
    When the above is run, the expected dialog is not displayed and clicking the menu does not display the dialog.

    Stepping through the code in debug indicates that the dialog creation code is called (ie OnInterfaceId1()) and executed but nothing is displayed.

    Any thoughts?

  • (Originally posted by YuriG on 12/3/2007)

    You must also use MODELESS flag, so it will look like 0x0480.

     

Sign In or Register to comment.