EditBox Carat Width Problem
Posted: Tue Jun 19, 2012 09:37
When I get Carat Width in FalEditbox.cpp, using the code below:
but the result is no expected, it seems inside function getBoundingRect,
causes the wrong calculate, the left and top member of bounds will be used to as operand of ceguimin, should this two be initialized as a larger number?
Code: Select all
const float caret_width = caret_imagery.getBoundingRect(*d_window, text_area).getWidth();
but the result is no expected, it seems inside function getBoundingRect,
Code: Select all
Rect bounds(0,0,0,0)
causes the wrong calculate, the left and top member of bounds will be used to as operand of ceguimin, should this two be initialized as a larger number?