Editable MSFLEXGRID Control-Derived Clas - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
How to Make a MS FlexGrid Control Editable
There is not much documentation about MS FlexGrid; however, the technique suggested by Microsoft is to use an auxiliary Edit control for doing the task (see Reference 1).
The idea is simple. When you want to edit the text in a cell, you only need to retieve the cell's rectangle and place an edit control over it. The edit control will manage all the keyboard input. When the editing is finished, the text in the edit control is written into the cell, replacing the previous text. Then, the edit box is hidden until you want to edit other cell again.
如何让 MS FlexGrid Control 控件可编辑?关于 MS FlexGrid还没有很多文档,然而, Microsoft建议的技术是使用一个附加的编辑框来完成这一功能。
想法是简单的。当你需要编辑一个网格单元中的文本时,只需要获取单元格的矩形,并在上面放置一个文本编辑框。编辑框会处理所有的键盘输入。当完成编辑后,再将编辑框中的文本复制到单元格中,取代以前的文本。接着再隐藏编辑框,直到你需要再编辑另一个单元格。
来源: http://www.codeguru.com/controls/EditableGrid.html |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
EditableGrid |
 1.0  |
2004-04-17 |
下载 |
|
|