+ text = t;
+ edit_pos = text.size();
+
+ if(multiline)
+ check_view_range();
+}
+
+void Entry::set_multiline(bool m)
+{
+ multiline = m;
+ if(multiline)
+ {
+ if(!slider)
+ {
+ slider = new VSlider;
+ add(*slider);
+ slider->set_step(1);
+ slider->signal_value_changed.connect(sigc::mem_fun(this, &Entry::slider_value_changed));
+ reposition_slider();
+ }
+ check_view_range();
+ }
+}
+
+void Entry::render_special(const Part &part) const
+{
+ if(part.get_name()=="text")
+ text.render(part, geom, first_row);
+ else if(part.get_name()=="cursor")
+ {
+ if(!text_part || !part.get_graphic(state))
+ return;
+
+ unsigned row, col;
+ text.offset_to_coords(edit_pos, row, col);
+
+ if(row<first_row || row>=first_row+visible_rows)
+ return;
+
+ Geometry rgeom = text.coords_to_geometry(*text_part, geom, first_row, row, col);
+
+ GL::push_matrix();
+ GL::translate(rgeom.x, rgeom.y, 0);
+ part.get_graphic(state)->render(part.get_geometry().w, part.get_geometry().h);
+ GL::pop_matrix();
+ }
+ else if(part.get_name()=="slider" && multiline)
+ slider->render();