Spread 8.0 Documentation
SSSetCalText Function
Support Options
DLL Reference > DLL Functions > SSSetCalText Function

Glossary Item Box

SSSetCalText Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Sets the text for the pop-up calendar provided for date cells.

Syntax

C

void SSSetCalText(LPCTSTR lpszShortDays, LPCTSTR lpszLongDays, LPCTSTR lpszShortMonths, LPCTSTR lpszLongMonths, LPCTSTR lpszOkText, LPCTSTR lpszCancelText);

C++

void TSpread::SetCalText(LPCTSTR lpszShortDays, LPCTSTR lpszLongDays, LPCTSTR lpszShortMonths, LPCTSTR lpszLongMonths, LPCTSTR lpszOkText, LPCTSTR lpszCancelText));

Parameters

The following parameters are available:

Parameter Description
lpszShortDays Short day name
lpszLongDays Long day name
lpszShortMonths Short month name
lpszLongMonths Long month name
lpszOkText Text for the OK button
lpszCancelText Text for the Cancel button

Remarks

Provide the text for the day names and month names as strings separated by the tab character (\t).

To display the pop-up calendar, double-click the date cell or press the F4 key (unless the you have changed the action of the F4 key using the SSSetActionKey function).

The settings for the SSSetCalText function are used as the settings for all fpSpread controls in your application. If you provide different values for different controls, the fpSpread controls in your application will display the settings of the last call to the SSSetCalText function. However, you can call the SSSetCalTextOverride function to specify different settings for different controls.

Return Type

None

See Also

Customizing the Pop-up Calendar

SSSetActionKey, SSSetCalTextOverride functions

ActiveX Correspondence

SetCalText method

Copyright © GrapeCity, inc. All rights reserved.