IE Web Browser ActiveX phenomenon (Matlab 2006a and 2007b)

Discussion in 'MATLAB' started by Remmer, Feb 14, 2008.

  1. Remmer

    Remmer Guest

    Using the IE Web Explorer from Matlab in different versions
    (2006a and 2007a)
    causes different supported events of the COM object.
    The execution of the following source code yields to
    different output results on Matalb 2006a and 2007a.
    In version 2007a less events are supported then
    in version 2006a.

    What is the reason ?

    Source Code :
    -------------


    hFigure = figure;
    anArray = [0 0 600 450];
    hExp = actxcontrol('Shell.Explorer',anArray,hFigure);

    disp('Events :');
    hExp.events %<!-- Prints the supported events of the
    COM object-->


    Output in 2006a:
    ----------------
    Events :
    StatusTextChange = void StatusTextChange(string
    Text)
    ProgressChange = void ProgressChange(int32
    Progress, int32 ProgressMax)
    CommandStateChange = void CommandStateChange(int32
    Command, bool Enable)
    DownloadBegin = void DownloadBegin()
    DownloadComplete = void DownloadComplete()
    TitleChange = void TitleChange(string Text)
    PropertyChange = void PropertyChange(string
    szProperty)
    BeforeNavigate2 = void BeforeNavigate2(handle
    pDisp, Variant URL, Variant Flags, Variant TargetFrameName,
    Variant PostData, Variant Headers, bool Cancel)
    NewWindow2 = void NewWindow2(handle ppDisp, bool
    Cancel)
    NavigateComplete2 = void NavigateComplete2(handle
    pDisp, Variant URL)
    DocumentComplete = void DocumentComplete(handle
    pDisp, Variant URL)
    OnQuit = void OnQuit()
    OnVisible = void OnVisible(bool Visible)
    OnToolBar = void OnToolBar(bool ToolBar)
    OnMenuBar = void OnMenuBar(bool MenuBar)
    OnStatusBar = void OnStatusBar(bool StatusBar)
    OnFullScreen = void OnFullScreen(bool FullScreen)
    OnTheaterMode = void OnTheaterMode(bool TheaterMode)
    WindowSetResizable = void WindowSetResizable(bool
    Resizable)
    WindowSetLeft = void WindowSetLeft(int32 Left)
    WindowSetTop = void WindowSetTop(int32 Top)
    WindowSetWidth = void WindowSetWidth(int32 Width)
    WindowSetHeight = void WindowSetHeight(int32 Height)
    WindowClosing = void WindowClosing(bool
    IsChildWindow, bool Cancel)
    ClientToHostWindow = void ClientToHostWindow(int32
    CX, int32 CY)
    SetSecureLockIcon = void SetSecureLockIcon(int32
    SecureLockIcon)
    FileDownload = void FileDownload(bool
    ActiveDocument, bool Cancel)
    NavigateError = void NavigateError(handle pDisp,
    Variant URL, Variant Frame, Variant StatusCode, bool Cancel)
    PrintTemplateInstantiation = void
    PrintTemplateInstantiation(handle pDisp)
    PrintTemplateTeardown = void PrintTemplateTeardown
    (handle pDisp)
    UpdatePageStatus = void UpdatePageStatus(handle
    pDisp, Variant nPage, Variant fDone)
    PrivacyImpactedStateChange = void
    PrivacyImpactedStateChange(bool bImpacted)
    NewWindow3 = void NewWindow3(handle ppDisp, bool
    Cancel, int16 dwFlags, string bstrUrlContext, string
    bstrUrl)
    SetPhishingFilterStatus = void
    SetPhishingFilterStatus(int32 PhishingFilterStatus)
    WindowStateChanged = void WindowStateChanged(int16
    dwWindowStateFlags, int16 dwValidFlagsMask)



    Output in 2007a:
    ----------------
    Events :
    BeforeNavigate = void BeforeNavigate(string URL,
    int32 Flags, string TargetFrameName, Variant PostData,
    string Headers, bool Cancel)
    NavigateComplete = void NavigateComplete(string URL)
    StatusTextChange = void StatusTextChange(string
    Text)
    ProgressChange = void ProgressChange(int32
    Progress, int32 ProgressMax)
    DownloadComplete = void DownloadComplete()
    CommandStateChange = void CommandStateChange(int32
    Command, bool Enable)
    DownloadBegin = void DownloadBegin()
    NewWindow = void NewWindow(string URL, int32 Flags,
    string TargetFrameName, Variant PostData, string Headers,
    bool Processed)
    TitleChange = void TitleChange(string Text)
    FrameBeforeNavigate = void FrameBeforeNavigate
    (string URL, int32 Flags, string TargetFrameName, Variant
    PostData, string Headers, bool Cancel)
    FrameNavigateComplete = void FrameNavigateComplete
    (string URL)
    FrameNewWindow = void FrameNewWindow(string URL,
    int32 Flags, string TargetFrameName, Variant PostData,
    string Headers, bool Processed)
    Quit = void Quit(bool Cancel)
    WindowMove = void WindowMove()
    WindowResize = void WindowResize()
    WindowActivate = void WindowActivate()
    PropertyChange = void PropertyChange(string
    Property)


    Greetings remmerw
     
    Remmer, Feb 14, 2008
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.