Add CanOverflow function to wxGridCellAttr
Add function to determine whether the cell will draw the overflowed text to neighbour cells. Note that only left aligned cells currently can overflow.
This commit is contained in:
committed by
Vadim Zeitlin
parent
249e5add7e
commit
a40acbb28e
@@ -645,6 +645,13 @@ wxGridFitMode wxGridCellAttr::GetFitMode() const
|
||||
}
|
||||
}
|
||||
|
||||
bool wxGridCellAttr::CanOverflow() const
|
||||
{
|
||||
int hAlign;
|
||||
GetAlignment(&hAlign, NULL);
|
||||
return GetOverflow() && (hAlign == wxALIGN_LEFT);
|
||||
}
|
||||
|
||||
// GetRenderer and GetEditor use a slightly different decision path about
|
||||
// which attribute to use. If a non-default attr object has one then it is
|
||||
// used, otherwise the default editor or renderer is fetched from the grid and
|
||||
|
Reference in New Issue
Block a user