diff options
author | corvid <corvid@lavabit.com> | 2012-11-25 02:23:37 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2012-11-25 02:23:37 +0000 |
commit | ea6ae568badbabb1441a4317e4f9e54ea98cc8b6 (patch) | |
tree | 21061b1eb3f6fc3a864fb40d9cd8ff76924a9f1d /dw/fltkui.cc | |
parent | 975fc68c4d5bd9ce6ca2e536f4c8a3c6d59962b9 (diff) |
and now we can implement maxlength
Diffstat (limited to 'dw/fltkui.cc')
-rw-r--r-- | dw/fltkui.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc index e8416bb3..14914dfe 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -670,6 +670,11 @@ void FltkEntryResource::setEditable (bool editable) this->editable = editable; } +void FltkEntryResource::setMaxLength (int maxlen) +{ + ((Fl_Input *)widget)->maximum_size(maxlen); +} + // ---------------------------------------------------------------------- FltkMultiLineTextResource::FltkMultiLineTextResource (FltkPlatform *platform, |