void Entry::rebuild_special(const Part &part)
{
if(part.get_name()=="text")
- text.build(part, geom, first_row, part_cache);
+ text.build(part, state, geom, first_row, part_cache);
else if(part.get_name()=="cursor")
{
const Graphic *graphic = part.get_graphic(state);
first_row = text.get_n_lines()-visible_rows-static_cast<unsigned>(value);
}
+
+Entry::Loader::Loader(Entry &e):
+ DataFile::DerivedObjectLoader<Entry, Widget::Loader>(e)
+{
+ add("edit_size", &Entry::edit_width, &Entry::edit_height);
+ add("multiline", &Loader::multiline);
+}
+
+void Entry::Loader::multiline(bool m)
+{
+ obj.set_multiline(m);
+}
+
} // namespace GLtk
} // namespace Msp