VLButtonBar Reference

Read/Write Property Prompt

See Also See Also Applies To Applies To

Returns or sets prompt string of a button for display in the status bar.

 

Syntax

object.Prompt [= string]

 

The Prompt property syntax has these parts:

Part Description
Object An object expression that evaluates to an object from the Applies to list.
string A string that specifies prompt message that should appear in the status bar when mouse hovers on an object.

 

Remark

This property is typically used to store a brief help message for display on status bar when the button is highlighted. Button highlight is notified by the control through ButtonHighlightChanged event.

Following piece of code demonstrate the use of ButtonHighlightChanged, and Prompt property :

 

Private Sub ChangeGroup(ByVal sGroupKey As String) 
Dim aGroup As CGroup 

   On Error Resume Next
      
   'Get specified group object		
   Set aGroup = VLBtnBar1.Groups.Item(sGroupKey) 
   If Not aGroup Is Nothing Then
      Set VLBtnBar1.ActiveGroup = aGroup 
   End If 
End Sub