note description: "[ An EiffelVision2 link-like label. ]" legal: "See notice at end of class." status: "See notice at end of class."; date: "$date$"; revision: "$revision$" class EV_LINK_LABEL inherit EV_LABEL redefine initialize, is_in_default_state_for_tabs, create_interface_objects end create default_create, make_with_text feature {NONE} -- Initialization create_interface_objects do Precursor create select_actions end initialize -- do Precursor pointer_button_press_actions.extend (agent on_pointer_press) set_foreground_color ((create {EV_STOCK_COLORS}).blue) set_pointer_style (create {EV_POINTER_STYLE}.make_predefined ({EV_POINTER_STYLE_CONSTANTS}.hyperlink_cursor)) enable_tabable_to enable_tabable_from end feature {NONE} -- Contract support is_in_default_state_for_tabs: BOOLEAN do Result := is_tabable_from and is_tabable_to end feature -- Actions select_actions: EV_LITE_ACTION_SEQUENCE [TUPLE] -- Actions called when selected feature {NONE} -- Action handlers on_pointer_press (a_x: INTEGER; a_y: INTEGER; a_button: INTEGER; a_x_tilt: DOUBLE; a_y_tilt: DOUBLE; a_pressure: DOUBLE; a_screen_x: INTEGER; a_screen_y: INTEGER) -- Called when a pointer action has been performed. require not_is_destroyed: not is_destroyed do if a_button = 1 then select_actions.call ([]) end end invariant select_actions_attached: select_actions /= Void note copyright: "Copyright (c) 1984-2020, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end