Objective Grid: Text alignment changes during cell editing

Article ID: 427
Last updated: 27 Apr, 2018
Article ID: 427
Last updated: 27 Apr, 2018
Revision: 3
Views: 2467
Posted: 09 Jan, 2001
by Meltreger B.
Updated: 27 Apr, 2018
by Meltreger B.

Problem

 


When I have a bottom aligned or vertically centered cell, the text jumps to the top when the user starts editing the cell. How can I avoid this?

 

 


Cause

 


 

 


Action

 


When you set the text single-line instead of multi-line, Objective Grid will position the CEdit at the bottom of the cell.

This example will turn off multi-line:

SetStyleRange(range, CGXStyle( ).SetWrapText(FALSE).SetAllowEnter(FALSE));

When you depend on a multi-line edit control, there is no way around this behavior. The problem is that CEdit does not support vertical alignment, and Objective Grid is using the CEdit class to edit the cell's contents.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 427
Last updated: 27 Apr, 2018
Revision: 3
Views: 2467
Posted: 09 Jan, 2001 by Meltreger B.
Updated: 27 Apr, 2018 by Meltreger B.

Others in this category