if(!style)
{
- text_part = 0;
+ text_part = nullptr;
return;
}
- text_part = style->get_part("text");
+ text_part = style->find_part("text");
if(multiline)
check_view_range();
void Entry::check_cursor_blink()
{
- const Part *cursor_part = style->get_part("cursor");
+ const Part *cursor_part = style->find_part("cursor");
bool has_blink = (cursor_part && cursor_part->get_graphic(ACTIVE|FOCUS)!=cursor_part->get_graphic(NORMAL|FOCUS));
cursor_blink = (state&FOCUS);
if(!multiline || !text_part)
return;
- visible_rows = text.get_visible_lines(*text_part, geom, 0);
+ visible_rows = text.get_visible_lines(*text_part, geom, nullptr);
unsigned row, col;
text.offset_to_coords(edit_pos, row, col);