The Frame Object - HTML2EXE Programming Interface

Document Path: Home Page / Programming / HTML2EXE / Interfaces / Frame Object  
Introduction

A program have at least one Frame - the Main Frame. A Frame can create other Frames.

Each Frame has a Main HTML View, a Menu-bar, a Too-lbar, a Side-bar and a Status-bar. When a Frame is created, the Host loads the Main View's HTML document and sets the four boars invisible. You should have codes in you Main View HTML to initialize the 4 bars - set their visibilities, contents, size etc.

Properties Application AutoUpdateCaption FrameMenu InputArguments Layout MessageHook Name OutputArguments OwnerFrame Property Sidebar Sidebar2 SidebarLeft SidebarRight Statusbar Style System Toolbar View WaitWindow Window
Methods CaptureMouseMoveFrame CaptureMouseResizeFrame CaptureMouseResizeFrame2 Close CreatePopupMenuObject MessageBox OpenDialogBox OpenFrameWindow RegisterWindowMessage
Properties

Application

Value Object
Access Get
Notes

AutoUpdateCaption

Value BOOL
Access Get, Put
Notes

FrameMenu

Value Object
Access Get
Notes

InputArguments

Value Object
Access Get
Notes

Layout

Value ULONG
Access Get, Put
Notes

MessageHook

Value Object
Access Get
Notes

Name

Value BSTR
Access Get, Put
Notes

OutputArguments

Value Object
Access Get
Notes

OwnerFrame

Value Object
Access Get, Put
Notes

Property

Value VARIANT
Arguments:
  • BSTR name
Access Get, Put
Notes

Sidebar

Value Toolbar Object (the left side bar)
Access Get
Notes

Sidebar2

Value Toolbar Object (the right side bar)
Access Get
Notes

SidebarLeft

Value Toolbar Object (the left side bar)
Access Get
Notes

SidebarRight

Value Toolbar Object (the right side bar)
Access Get
Notes

Statusbar

Value Toolbar Object
Access Get
Notes

Style

Value BSTR
Access Put
Notes

System

Value Object
Access Get
Notes

Toolbar

Value Toolbar Object
Access Get
Notes

View

Value Toolbar Object
Access Get
Notes

WaitWindow

Value Object
Access Get
Notes

Window

Value Object
Access Get
Notes
Methods

CaptureMouseMoveFrame

Return Value
Notes

CaptureMouseResizeFrame

Return Value
Arguments:
  • ULONG side
  • ULONG minWidth (Optional, default(80))
  • ULONG minHeight (Optional, default(80))
Notes

CaptureMouseResizeFrame2

Return Value
Arguments:
  • ULONG side
  • ULONG minWidth (Optional, default(80))
  • ULONG minHeight (Optional, default(80))
Notes

Close

Return Value
Notes

CreatePopupMenuObject

Return Value Object
Notes

MessageBox

Return Value BSTR
Arguments:
  • BSTR txt
  • BSTR buttonType (Optional, default("ok"))
  • BSTR iconType (Optional, default("information"))
  • BSTR caption (Optional, default(""))
Notes

OpenDialogBox

Return Value
Arguments:
  • BSTR mainHTML
  • VARIANT_BOOL initVisible (Optional, default(-1))
Notes

OpenFrameWindow

Return Value Object
Arguments:
  • BSTR mainHTML
  • VARIANT_BOOL initVisible (Optional, default(-1))
  • VARIANT_BOOL asDesktopChild (Optional, default(0))
  • BSTR frameName (Optional, default(""))
Notes

RegisterWindowMessage

Return Value UINT
Arguments:
  • BSTR name
  • Object callbackFunc
Notes
  • Callback Functin Protype (javascript):
    function callbackFunc(message, wparam, lparam)
    {
    }