Jump to content

wpEditCell

From EDM2
Revision as of 06:36, 16 November 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpEditCell}} This instance method is called to edit a value in a cell. ==Syntax== _wpEditCell(somSelf, pCell, hwndPal) ==Parameters== ;''somSelf'' (WPPalette *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPPalette. ;''pCell'' (PCELL) - input :Pointer to the **CELL** structure to be edited. ;''hwndPal'' (HWND) - input :Palette window handle. ==Returns== ;''rc'' (BOOL) - return...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This instance method is called to edit a value in a cell.

Syntax

_wpEditCell(somSelf, pCell, hwndPal)

Parameters

somSelf (WPPalette *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPPalette.
pCell (PCELL) - input
Pointer to the **CELL** structure to be edited.
hwndPal (HWND) - input
Palette window handle.

Returns

rc (BOOL) - returns
Success indicator.
TRUE Successful completion.
FALSE Error occurred.

How to Override

This method should be overridden to handle the edit action.

Usage

This method is generally called only by the palette window when the user requests to edit the value in the cell. This request is made by selecting a cell and pressing the Enter key or the edit pushbutton or by double-clicking on the cell.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPPalette *somSelf; /* Pointer to the object on which the method is being invoked. */
PCELL *pCell; /* Pointer to the CELL structure to be edited. */
HWND hwndPal; /* Palette window handle. */
BOOL rc; /* Success indicator. */

rc = _wpEditCell(somSelf, pCell, hwndPal);

Remarks

The default processing for this method by the WPPalette class is to do nothing other than return **FALSE**.

Related Methods

This method is not covered in the provided text.