INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

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

GROUP
rename
make as g_make
redefine
add,
build,
init,
init_children,
insert,
is_style_code_valid,
on_activate,
on_deactivate,
on_size
end
feature -- Window behaviour flags

auto_create_children: BOOLEAN

auto_arrange_children: BOOLEAN

auto_process_keyboard: BOOLEAN
feature -- Window style flags

STYLE_CAPTION: INTEGER

STYLE_SYSTEM_MENU: INTEGER

STYLE_MINIMIZE_BUTTON: INTEGER

STYLE_MAXIMIZE_BUTTON: INTEGER
feature -- Creation

make (n: STRING; r: RECT)
-- Create window
feature -- Operations

add, frozen std_window_add (t: TILE)

insert, frozen std_window_insert (t, before: TILE)
feature -- Complex window processing
-- This group of methods are supplied for processing
-- functionality of complex window objects which have
-- multiple components inside (Such as dialogs).

on_command (command: INTEGER): INTEGER
-- This method is called in responce to menu commands.

on_menu_selection (command_code: INTEGER): INTEGER
-- Called when menu item is only selected, but user
-- has not decided yet to invoke the command

on_menu_init: INTEGER
-- Called when user tries to start working with menu

on_changed (control: TILE): INTEGER
-- If some control in window changes it's data, parent
-- window is called this way. For example: input line
-- is changed, button group is modified, etc.

on_clicked (control: TILE): INTEGER
-- When some control in window is clicked, parent
-- is notified by this function

on_double_clicked (control: TILE): INTEGER
-- When some control in window is double clicked, parent
-- is notified by this function

on_hslide (slider: SCROLLER): INTEGER
-- This method is called when user manipulates SLIDER object
-- which belongs to this tile.

on_vslide (slider: SCROLLER): INTEGER
-- This method is called when user manipulates SLIDER object
-- which belongs to this tile.

on_size (w, h: INTEGER): INTEGER

resize_client_area (w, h: REAL)
-- resize window to specified client area
-- taking in mind system area size (caption, menu)

on_activate: INTEGER

on_deactivate: INTEGER

on_validation_error (t: TILE)

on_child_load (t: TILE): TILE
feature -- Menu related features

menu: MENU

system_menu: SYSTEM_MENU

set_menu (m: MENU)
-- You can attach menu to the window.

remove_menu

refresh_menu

refresh_root_menu
-- Use this method to reflect the latest changes made to the root menu
-- (Menu bar in case of MS Windows).

is_menu_active: BOOLEAN
-- Returns true, when window menu is active
feature -- Misc

has_any_dialog: BOOLEAN
-- Returns true, if there are any dialogs running

is_executing_dialog: BOOLEAN
-- Returns true if there are any running modal dialog

post_command (cmd_code: INTEGER)
-- Posts a command to the window. Results in on_command callback

send_command (cmd_code: INTEGER)
-- Sends a command to the window. Results in on_command callback

child_window_from_point (pt: POINT): TILE
-- Locates child window at specified point.
-- If point is outside of client area or there is no such
-- window - it returns Void.

set_dialog_keyboard (flag: BOOLEAN)
-- Turns on and off "a-la dialog" keyboard processing for this
-- window (TAB, SHIFT-TAB, etc.)

is_style_code_valid (style: INTEGER): BOOLEAN

init
-- WINDOW class processes init slightly different from GROUP.
-- Group iterates through it's members and applies init to
-- each of it's childs. But WINDOW also inits it's own IE.
feature -- Resources

build (rc: RESOURCE_CONTAINER; p: POINTER)

build_window (rc: RESOURCE_CONTAINER; p: POINTER): POINTER

build_window_child (rc: RESOURCE_CONTAINER; p: POINTER): POINTER
end -- class WINDOW

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES