GuiVContainer Object

Description

An object exposes the GuiVContainer interface if it is both visible and can have children. It will then also expose GuiComponent and GuiVComponent. Examples of this interface are windows and subscreens, toolbars or controls having children, such as the splitter control. GuiVContainer extends the GuiContainer Object and the GuiVComponent Object.

Methods

Method

Syntax

Description

All methods of the GuiVComponent Object:
  • DumpState
  • SetFocus
  • Visualize

All methods of the GuiContainer Object:

  • FindById
FindAllByName
Public Function FindAllByName( _
   ByVal Name As String, _
   ByVal Type As String _
) As GuiComponentCollection

The methods FindByName and FindByNameEx return only the first object with matching name and type. There may however be several matching objects, which will be returned as members of a collection when FindAllByName or FindAllByNameEx are used.

FindAllByNameEx
Public Function FindAllByNameEx( _
   ByVal Name As String, _
   ByVal Type As Long _
) As GuiComponentCollection

The methods FindByName and FindByNameEx return only the first object with matching name and type. There may however be several matching objects, which will be returned as members of a collection when FindAllByName or FindAllByNameEx are used.

This method works exactly like FindAllByName, but takes the type parameter with data type long coming from the GuiComponentType enumeration. See also GuiComponentType.
FindByName
Public Function FindByName( _
   ByVal Name As String, _
   ByVal Type As String _
) As GuiComponent

Unlike FindById, this function does not guarantee a unique result. It will simply return the first descendant matching both the name and type parameters. This is a more natural description of the object than the complex id, but it only makes sense on dynpro objects as most other objects do not have a meaningful name. If no descendant with matching name and type can be found, the function raises an exception.

FindByNameEx
Public Function FindByNameEx( _
   ByVal Name As String, _
   ByVal Type As Long _
) As GuiComponent

This method works exactly like FindByName, but takes the type parameter with data type long coming from the GuiComponentType enumeration. See also GuiComponentType.

Properties

Property

Syntax

Description

All properties of the GuiComponent Object:
  • ContainerType
  • Id
  • Name
  • Parent
  • Type
  • TypeAsNumber
All properties of the GuiVComponent Object:
  • AccLabelCollection
  • AccText
  • AccTextOnRequest
  • AccTooltip
  • Changeable
  • DefaultTooltip
  • Height
  • IconName
  • IsSymbolFont
  • Left
  • Modified
  • ParentFrame
  • ScreenLeft
  • ScreenTop
  • Text
  • Tooltip
  • Top
  • Width

All properties of the GuiContainer Object:

  • Children