Skip to content

ButtonTitle Method

Description

Sets the captions used for buttons in the caption bar.

Syntax

Public Sub ButtonTitle( _
    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
    The new title for the button.

Remarks

ButtonTitle 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 method [RefreshCaptionBar](XtremeCalendarControl~CalendarControl~RefreshCaptionBar.md) must be called after changes are made to see the updates.

Example

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

See Also


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