CHintBox: fix text mode pass

Rquired in inherited classes
This commit is contained in:
2016-10-21 00:10:38 +02:00
parent 4ff7bd8f7e
commit 2952dcc124
2 changed files with 3 additions and 1 deletions

View File

@@ -131,6 +131,7 @@ void CHintBox::init(const std::string& Text, const int& Width, const std::string
lines = 0; lines = 0;
timeout = HINTBOX_DEFAULT_TIMEOUT; timeout = HINTBOX_DEFAULT_TIMEOUT;
w_indentation = indent; w_indentation = indent;
hb_text_mode = text_mode;
//set required window width and basic height //set required window width and basic height
width = max(HINTBOX_MIN_WIDTH, Width); width = max(HINTBOX_MIN_WIDTH, Width);
@@ -160,7 +161,7 @@ void CHintBox::init(const std::string& Text, const int& Width, const std::string
timeout_pb_timer= NULL; timeout_pb_timer= NULL;
if (!Text.empty()) if (!Text.empty())
addHintItem(Text, text_mode, Picon); addHintItem(Text, hb_text_mode, Picon);
} }
CHintBox::~CHintBox() CHintBox::~CHintBox()

View File

@@ -55,6 +55,7 @@ class CHintBox : public CComponentsWindow
int y_hint_obj; int y_hint_obj;
int h_hint_obj; int h_hint_obj;
int w_indentation; int w_indentation;
int hb_text_mode;
///global count of lines ///global count of lines
uint lines; uint lines;