INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Entry area class"
project: "Visual Eiffel"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: grape
class ENTRY_AREA
inherit

CONTROL
redefine
set_default_style
end
feature

set_default_style

set_text (new_text: STRING)
-- Sets the contents of an entry field to a new value
require
entry_area_is_created: sys_id /= 0

get_text: STRING
-- Returns the data entered in the entry area
require
entry_area_is_created: sys_id /= 0

set_limit (text_size: INTEGER)
-- Limits the size of text the user can enter in an edit control.

get_limit: INTEGER

copy_selection
-- Copies a selection to the clipboard
require
entry_area_is_created: sys_id /= 0

cut_selection
-- Deletes a selection and copies it to the clipboard
require
entry_area_is_created: sys_id /= 0

clear_selection
-- Clears the contents of a selected region within an entry-area.
-- Unlike the cut_selection method, the erased text is not copied
-- to the clipboard
require
entry_area_is_created: sys_id /= 0

paste_selection
-- Inserts clipboard data into an entry-area
require
entry_area_is_created: sys_id /= 0

get_selection_range: POINT
-- Gets position of current entry-area selection
require
entry_area_is_created: sys_id /= 0

select_range (start_pos, end_pos: INTEGER)
-- Selects a block of text in a entry-area
require
entry_area_is_created: sys_id /= 0

select_all
-- Selects all text in an entry-area
require
entry_area_is_created: sys_id /= 0

replace_selection (new_text: STRING)
-- Replaces the current selection in an entry-area with a new contents
require
entry_area_is_created: sys_id /= 0

get_size: INTEGER
-- returns the length of a line in an entry-area
require
entry_area_is_created: sys_id /= 0

is_modified: BOOLEAN
-- Checks whether entry-area contents has changed
-- Returns nonzero if contents changed, otherwise 0
require
entry_area_is_created: sys_id /= 0

set_modified (state: BOOLEAN)
-- Sets or clears entry-area modification flag
require
entry_area_is_created: sys_id /= 0

can_undo: BOOLEAN
-- Determines if entry-area operation can be undone
require
entry_area_is_created: sys_id /= 0

undo
-- Undoes the last entry-area operation
require
entry_area_is_created: sys_id /= 0

clear_undo
-- Resets (clears) the undo flag of entry-area
require
entry_area_is_created: sys_id /= 0
end -- class ENTRY_AREA

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES