B2022-137 Table (grid) performance improvements.

B2022-137 added method to get font size from RTF string (used for tables)
B2022-137 Table (grid) performance improvements getting font sizes
B2022-137 Table (grid) performance improvements showing table cell shading
This commit is contained in:
2023-03-31 17:43:11 +00:00
parent 8d2dc00ad5
commit d11cba261f
4 changed files with 23 additions and 36 deletions

View File

@@ -4784,7 +4784,8 @@ namespace Volian.Controls.Library
{
float fnSz = GetRTFFontSize(); // returns the font size in pts from the text's RTF
_owner.SelectedFontSize = fnSz; // will trigger the changing of the font size from VlnFlexGrid class
_owner.ShowTableCellShading(); //C2021-004 display any background color change when you move off a cell
// B2022-137 Table performance improvements - moved ShowTableCellShading to the onLeave call
//_owner.ShowTableCellShading(); //C2021-004 display any background color change when you move off a cell
}
}
@@ -4986,6 +4987,7 @@ namespace Volian.Controls.Library
// done for now, hide editor
Visible = false;
_owner.ShowTableCellShading(); // B2022-137 restore shading if table after editing a cell
}
// we will handle the Tab key ourselves