note legal: "See notice at end of class." status: "See notice at end of class." class MODAL inherit WEL_MODAL_DIALOG redefine on_ok, setup_dialog end APPLICATION_IDS export {NONE} all end create make feature {NONE} -- Initialization make (a_parent: WEL_COMPOSITE_WINDOW) do create edit_text.make_empty make_by_id (a_parent, Modal_dlg_id) create edit.make_by_id (Current, Edit_id) end feature -- Access edit: detachable WEL_SINGLE_LINE_EDIT -- Edit control edit_text: STRING -- Text of the edit control feature {NONE} -- Implementation setup_dialog -- Restore the previous text in the edit control do if attached edit as l_edit then l_edit.set_text (edit_text) end end on_ok -- Save the text from the edit control do if attached edit as l_edit then edit_text := l_edit.text end terminate (Idok) end note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class MODAL