indexing description: "The demo that goes with the button demo"; date: "$Date$"; revision: "$Revision$" class DIRECTORY_WINDOW inherit DEMO_WINDOW EV_BUTTON redefine make end create make feature {NONE} -- Initialization make (par: EV_CONTAINER) is -- Create the demo in `par'. local cmd: EV_ROUTINE_COMMAND do make_with_text (par, " Show ") set_vertical_resize (False) set_horizontal_resize (False) create cmd.make (agent execute1) add_click_command (cmd, Void) end set_tabs is -- Set the tabs for the action window. do end feature -- Access dialog: EV_DIRECTORY_DIALOG -- The dialog feature -- Execution features execute1 (arg: EV_ARGUMENT; data: EV_EVENT_DATA) is -- Executed when we press the first button local cmd: EV_ROUTINE_COMMAND do if dialog /= Void then dialog.show else create dialog.make_with_text (parent, "This is an EiffelVision Directory Selection dialog") create cmd.make (agent execute2) dialog.add_ok_command (cmd, Void) create cmd.make (agent execute3) dialog.add_cancel_command (cmd, Void) dialog.show end end execute2 (arg: EV_ARGUMENT; data: EV_EVENT_DATA) is -- Executed when we press the first button do end execute3 (arg: EV_ARGUMENT; data: EV_EVENT_DATA) is -- Executed when we press the first button do end end -- class DIRECTORY_WINDOW --|---------------------------------------------------------------- --| EiffelVision2: library of reusable components for ISE Eiffel. --| Copyright (C) 1986-2001 Interactive Software Engineering Inc. --| All rights reserved. Duplication and distribution prohibited. --| May be used only with ISE Eiffel, under terms of user license. --| Contact ISE for any other use. --| --| Interactive Software Engineering Inc. --| ISE Building --| 360 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support: http://support.eiffel.com> --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------