Home Image-Pro Automation (Macros, Apps, Reports)

Is there a way to determine whether PREMIER is operating in the MDI MODE or the DOCKIN MODE?

All --

Is there a command that will return the STATUS of PREMIER relative to

    MDI vs DOCKING

Recording a transition from MDI to DOCKING and back results in
    Public Function NewMacro2() As SimpleScript
        NewMacro2 = New SimpleScript

        Application.MDICommands.Toggle(NewMacro2).Run()

        Application.MDICommands.Toggle(NewMacro2).Run()

        Application.MDICommands.Toggle(NewMacro2).Run()

    End Function
This does not point me in a good direction.

If PREMIER is in the MDI MODE and I issue
    With Application.WindowCommands.Align(Nothing)
        .MRU = True
        .Columns = 3
        .Rows = 1
        .Run()
    End With
then PREMIER ends up in the DOCKING MODE.

If PREMIER is in the DOCKING MODE and I issue
    Application.MDICommands.TileVertically(Nothing).Run()
then nothing happens.

I have looked at

    Image-Pro Premier Automation Help
    WindowCommands Class
    Automation ReferenceMediaCy.Automation.Application ► WindowCommands

and

    Image-Pro Premier Automation Help
    MDICommands Class

and I do not see anything that seems like a step in the right direction.

Thanks.

-- Matt

Best Answer

  • Answer ✓
    Matt,

    You can use ThisApplication.MDISupport which will be true when MDI is on.

    Pierre

Answers

  • Pierre --

    I followed your suggestion and it worked GREAT.

    Thanks.

    -- Matt
Sign In or Register to comment.