Spread 8.0 Documentation
SSGetCalTextOverride, SSSetCalTextOverride Functions
Support Options
DLL Reference > DLL Functions > SSGetCalTextOverride, SSSetCalTextOverride Functions

Glossary Item Box

SSGetCalTextOverride, SSSetCalTextOverride Functions


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Set or return the text for the pop-up calendar provided for date cells in a specified sheet in a specific fpSpread control.

Syntax

C

void SSGetCalTextOverride(HWND hWnd, LPTSTR lpszShortDays, LPSHORT lpLenShortDays, LPTSTR lpszLongDays, LPSHORT lpLenLongDays, LPTSTR lpszShortMonths, LPSHORT lpLenShortMonths, LPTSTR lpszLongMonths, LPSHORT lpLenLongMonths, LPTSTR lpszOkText, LPSHORT lpLenOkText, LPTSTR lpszCancelText, LPSHORT lpLenCancelText);

void SSSetCalTextOverride(HWND hWnd, LPCTSTR lpszShortDays, LPCTSTR lpszLongDays, LPCTSTR lpszShortMonths, LPCTSTR lpszLongMonths, LPCTSTR lpszOkText, LPCTSTR lpszCancelText);

C++

void TSpread::GetCalTextOverride(LPTSTR lpszShortDays, LPSHORT lpnLenShortDays, LPTSTR lpszLongDays, LPSHORT lpnLenLongDays, LPTSTR lpszShortMonths, LPSHORT lpnLenShortMonths, LPTSTR lpszLongMonths, LPSHORT lpnLenLongMonths, LPTSTR lpszOkText, LPSHORT lpnLenOkText, LPTSTR lpszCancelText, LPSHORT lpnLenCancelText);

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

Parameters

The SSGetCalTextOverride function has the following parameters:

Parameter Description
lpszShortDays Short day names
lpLenShortDays Returns the length of the buffer that contains the short day names
lpszLongDays Long day names
lpLenLongDays Returns the length of the buffer that contains the long day names
lpszShortMonths Short month names
lpLenShortMonths Returns the length of the buffer that contains the short month names
lpszLongMonths Long month names
lpLenLongMonths Returns the length of the buffer that contains the long month names
lpszOkText Text for the OK button
lpLenOkText Returns the length of the buffer that contains the OK button text
lpszCancelText Text for the Cancel button
lpLenCancelText Returns the length of the buffer that contains the Cancel button text

The SSSetCalTextOverride function has the following parameters:

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

Remarks

This function is applied to the entire workbook, including all sheets in the control.

The SSSetCalText function sets the text for the pop-up calendar provided for date cells in all fpSpread controls. Use the SSSetCalTextOverride function if you want to set the text for the pop-up calendars in a specific fpSpread control.

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).

Return Type

None

See Also

Customizing the Pop-up Calendar

SSSetActionKey, SSSetCalText functions

ActiveX Correspondence

SSGetCalTextOverride: GetCalTextOverride method

SSSetCalTextOverride: SetCalTextOverride method

Copyright © GrapeCity, inc. All rights reserved.