CComponentsText: Add function getTextLinesAutoHeight()

- Function is used for determine the number of lines
  in a text box in AUTO_HIGH mode.

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
Michael Liebmann
2013-10-23 16:42:40 +02:00
committed by Thilo Graf
parent 64c6eb5945
commit ad630c5acb
2 changed files with 18 additions and 0 deletions

View File

@@ -133,6 +133,9 @@ class CComponentsText : public CComponentsItem, public CBox
///gets the embedded CTextBox object, so it's possible to get access directly to its methods and properties
virtual CTextBox* getCTextBoxObject() { return ct_textbox; };
///returns count of lines from a text box page
virtual int getTextLinesAutoHeight(const int& textMaxHeight, const int& textWidth, const int& mode);
};