INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Contains information about a button in a toolbar. ", "WEL: library of reusable components for Eiffel. ", "Based on WEL library for ISE Eiffel, used with permission. "
project: "Windows Eiffel Library"
copyright: "(c) 1986-1997 Interactive Software Engineering Inc. ", "Modifications and extensions: ", "(c) 1997 Object Tools ", "All rights reserved. Duplication and distribution prohibited", "May be used only with Visual Eiffel under terms of user ", "license "
cluster: wel
class WEL_TOOL_BAR_BUTTON
inherit

WEL_STRUCTURE
end

WEL_TB_STYLE_CONSTANTS
export
{NONE}
all
end

WEL_TB_STATE_CONSTANTS
export
{NONE}
all
end
creation

make,
make_button,
make_by_pointer,
make_check,
make_check_group,
make_group,
make_separator
feature {NONE}-- Initialization

make_button (a_bitmap_index, a_command_id: INTEGER)
-- Make a button using `a_bitmap_index' and
-- `a_command_id'.
ensure
bitmap_index_set: bitmap_index = a_bitmap_index
command_id_set: command_id = a_command_id

make_check (a_bitmap_index, a_command_id: INTEGER)
-- Make a check button using `a_bitmap_index' and
-- `a_command_id'.
ensure
bitmap_index_set: bitmap_index = a_bitmap_index
command_id_set: command_id = a_command_id

make_check_group (a_bitmap_index, a_command_id: INTEGER)
-- Make a check group using `a_bitmap_index' and
-- `a_command_id'.
ensure
bitmap_index_set: bitmap_index = a_bitmap_index
command_id_set: command_id = a_command_id

make_group (a_bitmap_index, a_command_id: INTEGER)
-- Make an enabled check group using `a_bitmap_index'
-- and `a_command_id'.
ensure
bitmap_index_set: bitmap_index = a_bitmap_index
command_id_set: command_id = a_command_id

make_separator
-- Make a separator providing a small gap between
-- groups.
feature -- Access

bitmap_index: INTEGER
-- Zero-based index of button image

command_id: INTEGER
-- Command identifier associated with the button. This
-- identifer is used in a Wm_command message when the
-- button is chosen.

state: INTEGER
-- Button state flags.
-- See class WEL_TB_STATE_CONSTANTS for values

style: INTEGER
-- Button style flags.
-- See class WEL_TB_STYLE_CONSTANTS for values

data: INTEGER
-- Application-defined value

string_index: INTEGER
-- Zero-based index of button string.
ensure
positive_result: Result >= 0
feature -- Element change

set_bitmap_index (a_bitmap_index: INTEGER)
-- Set `bitmap_index' with `a_bitmap_index'.
ensure
bitmap_index_set: bitmap_index = a_bitmap_index

set_command_id (a_command_id: INTEGER)
-- Set `command_id' with `a_command_id'.
ensure
command_id_set: command_id = a_command_id

set_state (a_state: INTEGER)
-- Set `state' with `a_state'.
ensure
state_set: state = a_state

set_style (a_style: INTEGER)
-- Set `style' with `a_style'.
ensure
style_set: style = a_style

set_data (a_data: INTEGER)
-- Set `data' with `a_data'.
ensure
data_set: data = a_data

set_string_index (a_string_index: INTEGER)
-- Set `string_index' with `a_string_index'.
require
positive_index: a_string_index >= 0
ensure
string_index_set: string_index = a_string_index
feature -- Measurement

structure_size: INTEGER
-- Size to allocate (in bytes)
end -- class WEL_TOOL_BAR_BUTTON

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES