note description: "Objects that test EV_VERTICAL_RANGE." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class VERTICAL_RANGE_VALUE_TEST inherit COMMON_TEST redefine default_create end feature {NONE} -- Initialization default_create -- Create `Current' and initialize test in `widget'. local vertical_box: EV_VERTICAL_BOX do create vertical_box create range range.set_minimum_height (250) vertical_box.extend (range) create label vertical_box.extend (label) vertical_box.disable_item_expand (label) range.change_actions.extend (agent display_value) range.set_value (50) widget := vertical_box end feature {NONE} -- Implementation display_value (value: INTEGER) -- Display `value' on `label'. do label.set_text ("value : " + value.out) end label: EV_LABEL -- A label for output. range: EV_VERTICAL_RANGE; -- Widget that test is to be performed on. 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 VERTICAL_RANGE_VALUE_TEST