WpEditCell: Difference between revisions
Appearance
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..." |
|||
| Line 10: | Line 10: | ||
:Points to an object of class [[WPPalette]]. | :Points to an object of class [[WPPalette]]. | ||
;''pCell'' ([[ | ;''pCell'' (P[[CELL]]) - input | ||
:Pointer to the **CELL** structure to be edited. | :Pointer to the **CELL** structure to be edited. | ||
Latest revision as of 06:36, 16 November 2025
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.