ISRadioButton.Top

Description

The vertical offset of the specified radio button from the top left corner of the form.

Syntax

object.Top

Part Attribute Type Description
object Required
The object always implements the ISRadioButton interface

Return Value

int

Example

Display some information about the specified radio button, including its vertical offset from the top left corner of the form.

Dim aRadioButton
Dim aControlInfo

Set aRadioButton = Form.Controls_("rbCaseOne")

aControlInfo =_
  "Caption: " & aRadioButton.Caption & vbNewLine &_ 
  "Width: " & aRadioButton.Width & vbNewLine &_
  "Height: " & aRadioButton.Height & vbNewLine &_
  "Hint: " & aRadioButton.Hint & vbNewLine &_
  "Left: " & aRadioButton.Left & vbNewLine &_
  "Top: " & aRadioButton.Top & vbNewLine &_
  "Tag: " & aRadioButton.Tag & vbNewLine &_
  "ShortName: " & aRadioButton.ShortName & vbNewLine &_
  "Enabled: " & aRadioButton.Enabled & vbNewLine &_
  "TypeName: " & aRadioButton.TypeName                
  
Profile.MsgBox(aControlInfo) 
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Top can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the radio button in the controls tree > Top.

Version information

Added in v7.8.0