note description: "Objects that demonstrate setting% %item texts in an EV_NOTEBOOK" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class NOTEBOOK_ITEM_TEXT_TEST inherit COMMON_TEST redefine default_create end feature {NONE} -- Initialization default_create -- Create `Current' and initialize test in `widget'. local button1, button2: EV_BUTTON do create notebook notebook.set_minimum_size (200, 200) create button1.make_with_text ("Notebook item 1") create button2.make_with_text ("Notebook item 2") notebook.extend (button1) notebook.extend (button2) notebook.extend (create {EV_BUTTON}.make_with_text ("Notebook item 3")) notebook.set_item_text (button1, "First item") notebook.set_item_text (button2, "Second item") -- As we do not have a reference to the third item, -- we query the notebook. notebook.set_item_text (notebook.i_th (3), "Third item") widget := notebook end feature {NONE} -- Implementation notebook: EV_NOTEBOOK; -- 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 NOTEBOOK_ITEM_TEXT_TEST