INDEX
CLUSTER
FEATURES
SHORT
FRAMES
NO FRAMES
indexing
title:
"Listbox control"
project:
"Visual Eiffel"
revision:
"$Revision: 1.1 $"
copyright:
"Copyright (C) 1996-2005 Object Tools Group"
license:
"http://visual-eiffel.com/license"
cluster:
grape
class
LIST_BOX
inherit
CONTROL
rename
make
as
t_make
redefine
build
,
init
,
on_destroy
,
on_size
,
set_default_style
end
COMPONENT
end
creation
load
,
make
feature
components
:
ARRAY_MODEL
[
COMPONENT
]
multi
:
BOOLEAN
self_drawing
:
BOOLEAN
item_height
:
INTEGER
columns
:
INTEGER
feature
make
(
n
:
STRING
;
r
:
RECT
;
ctx
:
INTEGER
;
multi_sel
,
selfdrawing
:
BOOLEAN
)
set_default_style
init
on_size
(
w
:
INTEGER
;
h
:
INTEGER
):
INTEGER
on_destroy
:
INTEGER
set_first_visible
(
fv
:
INTEGER
)
get_first_visible
:
INTEGER
set_scroll_width
(
sw
:
INTEGER
)
get_scroll_width
:
INTEGER
add
(
c
:
COMPONENT
)
insert_at_pos
(
c
:
COMPONENT
;
pos
:
INTEGER
)
insert_before
(
c
,
before
:
COMPONENT
)
insert_after
(
c
,
after
:
COMPONENT
)
remove
(
c
:
COMPONENT
)
remove_at_pos
(
pos
:
INTEGER
)
wipe
adapt
(
ca
:
ARRAY_MODEL
[
COMPONENT
])
number_of_entries
:
INTEGER
get_current
:
COMPONENT
get_current_pos
:
INTEGER
set_current
(
c
:
COMPONENT
)
set_current_pos
(
pos
:
INTEGER
)
clear_selection
get_component_pos
(
c
:
COMPONENT
):
INTEGER
get_component
(
i
:
INTEGER
):
COMPONENT
select_component
(
c
:
COMPONENT
)
unselect_component
(
c
:
COMPONENT
)
is_selected
(
c
:
COMPONENT
):
BOOLEAN
select_all
unselect_all
selected_count
:
INTEGER
select_pos
(
pos
:
INTEGER
)
unselect_pos
(
pos
:
INTEGER
)
is_selected_pos
(
pos
:
INTEGER
):
BOOLEAN
redraw_component
(
pos
:
INTEGER
)
-- Redraw component at the specified position
--
set_columns_number
(
num
:
INTEGER
)
set_item_height
(
ih
:
INTEGER
)
set_multisel
(
m
:
BOOLEAN
)
set_selfdrawing
(
s
:
BOOLEAN
)
on_self_drawing
(
gc
:
DISPLAY_GRAPHICS_CONTEXT
;
x
,
y
,
w
,
h
:
INTEGER
;
selected
,
focused
,
disabled
:
BOOLEAN
)
contents_to_string
:
STRING
is_string
:
BOOLEAN
single_column_to_multi
(
cols
:
INTEGER
)
multi_columns_to_single
lock
unlock
build
(
rc
:
RESOURCE_CONTAINER
;
p
:
POINTER
)
feature
import_items
(
s
:
ARRAY_MODEL
[
STRING
])
export_items
:
ARRAY_MODEL
[
STRING
]
end
-- class
LIST_BOX
INDEX
CLUSTER
FEATURES
SHORT
FRAMES
NO FRAMES