Skip to content

CaptionButtonTitle Method

Description

Sets the captions used for buttons in the caption bar.

Syntax

Public Sub CaptionButtonTitle( _
    ByVal [iNumber](#) As Integer, _
    ByVal [sTitle](#) As String _
)

Parameters

  • iNumber
    Index of button to change. Valid Button Indexes:
  • 0 - Day Button
  • 1 - Week Button
  • 2 - Month Button
  • 3 - Time Line Button
  • 4 - Work Week Button
  • 5 - Full Week Button
  • 6 - Multi-Column Button

  • sTitle
    New caption for the button. Setting to "" will remove the button.

Remarks

CaptionButtonTitle allows the text of the calendar caption buttons to be changed. To hide a button, you can set the text to "", and it will be hidden. Simply pass in the index of the button you wish to change and provide a new caption for it. The RefreshCaptionBar must be called after changes are made to see the changes.

Example

CalendarControl.CaptionButtonTitle 0, "D"
CalendarControl.CaptionButtonTitle 1, "W"
CalendarControl.CaptionButtonTitle 2, "M"
CalendarControl.CaptionButtonTitle 3, "TL"
CalendarControl.CaptionButtonTitle 4, "WW"
CalendarControl.CaptionButtonTitle 5, "FW"
CalendarControl.CaptionButtonTitle 6, "III"

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.