indexing description: "Eiffel Vision dialog. Mswindows implementation (hidden window)." status: "See notice at end of class" date: "$Date$" revision: "$Revision$" class EV_UNTITLED_DIALOG_IMP inherit EV_DIALOG_IMP redefine interface, update_style, extra_minimum_height, promote_to_modeless_dialog, promote_to_modal_dialog, common_dialog_imp, has_title_bar end create make, make_with_real_dialog feature {NONE} -- Implementation update_style is -- Update the style of the window accordingly to the -- options set (`user_can_resize', `is_closeable', ...) -- and set the pixmap. local new_style: INTEGER bit_op: WEL_BIT_OPERATIONS do Precursor {EV_DIALOG_IMP} -- Change the style of the window. create bit_op new_style := style new_style := bit_op.clear_flag (new_style, Ws_caption) set_style (new_style) end extra_minimum_height: INTEGER is -- Compute extra minimum height that does not count `item'. do Result := Precursor {EV_DIALOG_IMP} - title_bar_height if not user_can_resize then Result := Result - 2 * dialog_window_frame_height end end has_title_bar: BOOLEAN is False -- Does Current have a title bar? feature {EV_ANY, EV_ANY_I} -- Implementation interface: EV_UNTITLED_DIALOG -- Interface for `Current' feature {NONE} -- Implementation promote_to_modal_dialog is -- Promote the current implementation to -- EV_DIALOG_IMP_MODAL which allows modality local modal_dialog_imp: EV_UNTITLED_DIALOG_IMP_MODAL do create modal_dialog_imp.make_with_dialog_window (Current) interface.replace_implementation (modal_dialog_imp) end promote_to_modeless_dialog is -- Promote the current implementation to -- EV_DIALOG_IMP_MODELESS which allows modality local modeless_dialog_imp: EV_UNTITLED_DIALOG_IMP_MODELESS do create modeless_dialog_imp.make_with_dialog_window (Current) interface.replace_implementation (modeless_dialog_imp) end common_dialog_imp: EV_UNTITLED_DIALOG_IMP_COMMON is -- Dialog implementation type common to all descendents. do end end -- class EV_UNTITLED_DIALOG_IMP --|---------------------------------------------------------------- --| EiffelVision2: library of reusable components for ISE Eiffel. --| Copyright (C) 1985-2004 Eiffel Software. All rights reserved. --| Duplication and distribution prohibited. May be used only with --| ISE Eiffel, under terms of user license. --| Contact Eiffel Software for any other use. --| --| Interactive Software Engineering Inc. --| dba Eiffel Software --| 356 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Contact us at: http://www.eiffel.com/general/email.html --| Customer support: http://support.eiffel.com --| For latest info on our award winning products, visit: --| http://www.eiffel.com --|----------------------------------------------------------------