Panel Browser ActiveX Reference

<< Click to Display Table of Contents >>

Manual > Monitoring system construction guide > System installation and operation > System configuration and operation (runtime execution) > Client runtime execution > Other client execution methods > Incorporate Panel Browser into VB and execute > Function explanation >

Panel Browser ActiveX Reference

Panel Browser ActiveX Reference

Panel Browser ActiveX provides the following interfaces:

 


ActiveX Methods

 

Method name

explanation

OpenFile

Opens the Panel Browser client configuration file (xml file).

CallPanelMethod

Calls a user-defined function defined in Panel Browser.

 

 

 


ActiveX Events

 

Event name

explanation

PanelEvent

This is an event that Panel Browser uses to notify external applications such as VB. If you call the FirePanelEvent method on the root of Panel Browser from within a script, this event will occur on the VB side.

 

 

 


 


 

OpenFile Method
 

Opens the Panel Browser client configuration file (xml file).


syntax

OpenFile(

         FileName

         )

 


Parameters

 

FileName

 

Type:

character

 

File name

 

Return Value

 

 

Type:

Boolean

 

FALSE - Failure. TRUE - Success.

 


hmtoggle_plus1Example

 

hint

The xml file to be opened can also be specified using a relative path.

 

example)

OpenFile("..\sample01.xml")

 

 

 


 


 

CallPanelMethod Method
 

Calls a user-defined function defined in Panel Browser. You can specify as many parameters as you need (up to 10).


syntax

CallPanelMethod(

         Name,

         [, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10]

         )

 


Parameters

 

Name

 

Type:

character

 

User-defined function name

 

p1 ~ p10

 

Type:

character

 

User-defined function parameters 1 to 10

 

Return Value

 

 

Type:

User-defined function return types

 

Return value of user-defined function

 


hmtoggle_plus1Example

 

hint

The xml file to be opened can also be specified using a relative path.

 

example)

OpenFile("..\sample01.xml")

 

 

 


 


 

PanelEvent Event
 

This is an event that Panel Browser uses to notify external applications such as VB. When you call the FirePanelEvent method of the Panel Browser root from within a script, this PanelEvent event occurs.


syntax

XXX_PanelEvent(

         ByVal sender As System.Object,

         ByVal e As [Library name].[Event handler name]

         )

 

* "xxx" is the object name of the ActiveX control.


Parameters

 

e.eventName

 

Type:

character

 

Event name

 

e.p1

 

Type:

character

 

Parameter 1

 

e.p2

 

Type:

character

 

Parameter 2

 

 


hmtoggle_plus1Example

 

attention

Calling CallPanelMethod from within a PanelEvent event is not supported. If you do so, an application error will occur.