Create  Edit  Diff  Phillro Industries  Index  Search  Changes  History  Source  RSS  Note  wikifarm  Login

Phi::StringGrid

Phi::StringGridは、文字列を縦横の格子状(グリッド状)に配置する画像部品です。

* データベースのデータを格子状に並べたい場合にはRDB::DBGridを使います。

#! ruby -Ks
require "phi"
form = Phi::Form.new
grid = Phi::StringGrid.new form
grid.cells[1,2] = "1の2"
p grid.cells          #=> #<Phi::Indexer:0x143a070>
p grid.cells[1,2]     #=> "1の2"
p grid.cols[1]        #=> #<Phi::Strings: "", "", "1の2", "", "">
p grid.rows[2]        #=> #<Phi::Strings: "", "1の2", "", "", "">
p grid.col_widths[1]  #=> 64
form.show
Phi.mainloop
StringGrid.png

メソッド

cells

col_widths

cols

rows


承継メソッド

_dump => Phi::Component#_dump

action => Phi::Control#action

action= => Phi::Control#action=

action_change => Phi::WinControl#action_change

adjust_client_rect => Phi::WinControl#adjust_client_rect

adjust_size => Phi::WinControl#adjust_size

adjusted_client_rect => Phi::WinControl#adjusted_client_rect

align => Phi::Control#align

align= => Phi::Control#align=

align_controls => Phi::WinControl#align_controls

align_disabled => Phi::WinControl#align_disabled

align_disabled? => Phi::WinControl#align_disabled?

anchors => Phi::DrawGrid#anchors

anchors= => Phi::DrawGrid#anchors=

assign_to => Phi::WinControl#assign_to

begin_drag => Phi::Control#begin_drag

bevel_width => Phi::WinControl#bevel_width

bevel_width= => Phi::WinControl#bevel_width=

bi_di_mode => Phi::DrawGrid#bi_di_mode

bi_di_mode= => Phi::DrawGrid#bi_di_mode=

border_style => Phi::DrawGrid#border_style

border_style= => Phi::DrawGrid#border_style=

border_width => Phi::WinControl#border_width

border_width= => Phi::WinControl#border_width=

bottom => Phi::Control#bottom

bottom= => Phi::Control#bottom=

bring_to_front => Phi::Control#bring_to_front

can_auto_size => Phi::WinControl#can_auto_size

can_focus => Phi::WinControl#can_focus

can_resize => Phi::WinControl#can_resize

canvas => Phi::CustomGrid#canvas

cell_rect => Phi::CustomGrid#cell_rect

cells

change_scale => Phi::WinControl#change_scale

client_origin => Phi::WinControl#client_origin

client_rect => Phi::WinControl#client_rect

client_to_screen => Phi::Control#client_to_screen

col => Phi::DrawGrid#col

col= => Phi::DrawGrid#col=

col_count => Phi::DrawGrid#col_count

col_count= => Phi::DrawGrid#col_count=

col_widths

color => Phi::DrawGrid#color

color= => Phi::DrawGrid#color=

cols

component_count => Phi::Component#component_count

components => Phi::Component#components

constrained_resize => Phi::WinControl#constrained_resize

constraints => Phi::DrawGrid#constraints

constraints= => Phi::DrawGrid#constraints=

contains_control => Phi::WinControl#contains_control

control_at => Phi::WinControl#control_at

control_at_pos => Phi::WinControl#control_at_pos

control_count => Phi::WinControl#control_count

control_extents => Phi::WinControl#control_extents

control_state => Phi::Control#control_state

control_state= => Phi::Control#control_state=

control_style => Phi::Control#control_style

control_style= => Phi::Control#control_style=

controls => Phi::WinControl#controls

controls_aligned => Phi::WinControl#controls_aligned

create_handle => Phi::WinControl#create_handle

create_wnd => Phi::WinControl#create_wnd

ctl3d => Phi::WinControl#ctl3d

ctl3d= => Phi::WinControl#ctl3d=

ctl3d? => Phi::WinControl#ctl3d?

cursor => Phi::Control#cursor

cursor= => Phi::Control#cursor=

custom_align_insert_before => Phi::WinControl#custom_align_insert_before

def_wnd_proc= => Phi::WinControl#def_wnd_proc=

default_col_width => Phi::DrawGrid#default_col_width

default_col_width= => Phi::DrawGrid#default_col_width=

default_drawing => Phi::DrawGrid#default_drawing

default_drawing= => Phi::DrawGrid#default_drawing=

default_drawing? => Phi::DrawGrid#default_drawing?

default_row_height => Phi::DrawGrid#default_row_height

default_row_height= => Phi::DrawGrid#default_row_height=

define_properties => Phi::WinControl#define_properties

destroy_handle => Phi::WinControl#destroy_handle

destroy_window_handle => Phi::WinControl#destroy_window_handle

destroy_wnd => Phi::WinControl#destroy_wnd

device_context => Phi::WinControl#device_context

disable_align => Phi::WinControl#disable_align

dock_client_count => Phi::WinControl#dock_client_count

dock_drop => Phi::WinControl#dock_drop

dock_site => Phi::WinControl#dock_site

dock_site= => Phi::WinControl#dock_site=

dock_site? => Phi::WinControl#dock_site?

double_buffered => Phi::WinControl#double_buffered

double_buffered= => Phi::WinControl#double_buffered=

drag_cursor => Phi::DrawGrid#drag_cursor

drag_cursor= => Phi::DrawGrid#drag_cursor=

drag_kind => Phi::DrawGrid#drag_kind

drag_kind= => Phi::DrawGrid#drag_kind=

drag_mode => Phi::DrawGrid#drag_mode

drag_mode= => Phi::DrawGrid#drag_mode=

editor_mode => Phi::DrawGrid#editor_mode

editor_mode= => Phi::DrawGrid#editor_mode=

enable_align => Phi::WinControl#enable_align

enabled => Phi::DrawGrid#enabled

enabled= => Phi::DrawGrid#enabled=

enabled? => Phi::DrawGrid#enabled?

event_handle

extend => Phi::Persistent#extend

find_child_control => Phi::WinControl#find_child_control

find_next_control => Phi::WinControl#find_next_control

fixed_color => Phi::DrawGrid#fixed_color

fixed_color= => Phi::DrawGrid#fixed_color=

fixed_cols => Phi::DrawGrid#fixed_cols

fixed_cols= => Phi::DrawGrid#fixed_cols=

fixed_rows => Phi::DrawGrid#fixed_rows

fixed_rows= => Phi::DrawGrid#fixed_rows=

fixup_tab_list => Phi::WinControl#fixup_tab_list

flip_children => Phi::WinControl#flip_children

focused => Phi::WinControl#focused

focused? => Phi::WinControl#focused?

font => Phi::DrawGrid#font

font= => Phi::DrawGrid#font=

grid_line_width => Phi::DrawGrid#grid_line_width

grid_line_width= => Phi::DrawGrid#grid_line_width=

handle => Phi::Control#handle

handle_allocated => Phi::WinControl#handle_allocated

handle_needed => Phi::WinControl#handle_needed

height => Phi::Control#height

height= => Phi::Control#height=

help_context => Phi::Control#help_context

help_context= => Phi::Control#help_context=

help_keyword => Phi::Control#help_keyword

help_keyword= => Phi::Control#help_keyword=

help_type => Phi::Control#help_type

help_type= => Phi::Control#help_type=

hide => Phi::Control#hide

hint => Phi::Control#hint

hint= => Phi::Control#hint=

ime_mode => Phi::WinControl#ime_mode

ime_mode= => Phi::WinControl#ime_mode=

ime_name => Phi::WinControl#ime_name

ime_name= => Phi::WinControl#ime_name=

insert_control => Phi::WinControl#insert_control

invalidate => Phi::Control#invalidate

key_press => Phi::WinControl#key_press

left => Phi::Control#left

left= => Phi::Control#left=

mouse_coord => Phi::CustomGrid#mouse_coord

mouse_to_cell => Phi::DrawGrid#mouse_to_cell

name => Phi::Control#name

name= => Phi::Control#name=

on_click => Phi::DrawGrid#on_click

on_click= => Phi::DrawGrid#on_click=

on_column_moved => Phi::DrawGrid#on_column_moved

on_column_moved= => Phi::DrawGrid#on_column_moved=

on_context_popup => Phi::Control#on_context_popup

on_context_popup= => Phi::Control#on_context_popup=

on_dbl_click => Phi::DrawGrid#on_dbl_click

on_dbl_click= => Phi::DrawGrid#on_dbl_click=

on_drag_drop => Phi::DrawGrid#on_drag_drop

on_drag_drop= => Phi::DrawGrid#on_drag_drop=

on_drag_over => Phi::DrawGrid#on_drag_over

on_drag_over= => Phi::DrawGrid#on_drag_over=

on_draw_cell => Phi::DrawGrid#on_draw_cell

on_draw_cell= => Phi::DrawGrid#on_draw_cell=

on_end_dock => Phi::DrawGrid#on_end_dock

on_end_dock= => Phi::DrawGrid#on_end_dock=

on_end_drag => Phi::DrawGrid#on_end_drag

on_end_drag= => Phi::DrawGrid#on_end_drag=

on_enter => Phi::DrawGrid#on_enter

on_enter= => Phi::DrawGrid#on_enter=

on_exit => Phi::DrawGrid#on_exit

on_exit= => Phi::DrawGrid#on_exit=

on_get_edit_mask => Phi::DrawGrid#on_get_edit_mask

on_get_edit_mask= => Phi::DrawGrid#on_get_edit_mask=

on_get_edit_text => Phi::DrawGrid#on_get_edit_text

on_get_edit_text= => Phi::DrawGrid#on_get_edit_text=

on_key_down => Phi::DrawGrid#on_key_down

on_key_down= => Phi::DrawGrid#on_key_down=

on_key_press => Phi::DrawGrid#on_key_press

on_key_press= => Phi::DrawGrid#on_key_press=

on_key_up => Phi::DrawGrid#on_key_up

on_key_up= => Phi::DrawGrid#on_key_up=

on_mouse_down => Phi::DrawGrid#on_mouse_down

on_mouse_down= => Phi::DrawGrid#on_mouse_down=

on_mouse_move => Phi::DrawGrid#on_mouse_move

on_mouse_move= => Phi::DrawGrid#on_mouse_move=

on_mouse_up => Phi::DrawGrid#on_mouse_up

on_mouse_up= => Phi::DrawGrid#on_mouse_up=

on_mouse_wheel_down => Phi::DrawGrid#on_mouse_wheel_down

on_mouse_wheel_down= => Phi::DrawGrid#on_mouse_wheel_down=

on_mouse_wheel_up => Phi::DrawGrid#on_mouse_wheel_up

on_mouse_wheel_up= => Phi::DrawGrid#on_mouse_wheel_up=

on_row_moved => Phi::DrawGrid#on_row_moved

on_row_moved= => Phi::DrawGrid#on_row_moved=

on_select_cell => Phi::DrawGrid#on_select_cell

on_select_cell= => Phi::DrawGrid#on_select_cell=

on_set_edit_text => Phi::DrawGrid#on_set_edit_text

on_set_edit_text= => Phi::DrawGrid#on_set_edit_text=

on_start_dock => Phi::DrawGrid#on_start_dock

on_start_dock= => Phi::DrawGrid#on_start_dock=

on_start_drag => Phi::DrawGrid#on_start_drag

on_start_drag= => Phi::DrawGrid#on_start_drag=

on_top_left_changed => Phi::DrawGrid#on_top_left_changed

on_top_left_changed= => Phi::DrawGrid#on_top_left_changed=

options => Phi::DrawGrid#options

options= => Phi::DrawGrid#options=

paint_controls => Phi::WinControl#paint_controls

paint_window => Phi::WinControl#paint_window

palette_changed => Phi::WinControl#palette_changed

parent => Phi::Control#parent

parent= => Phi::Control#parent=

parent_bi_di_mode => Phi::DrawGrid#parent_bi_di_mode

parent_bi_di_mode= => Phi::DrawGrid#parent_bi_di_mode=

parent_bi_di_mode? => Phi::DrawGrid#parent_bi_di_mode?

parent_color => Phi::DrawGrid#parent_color

parent_color= => Phi::DrawGrid#parent_color=

parent_color? => Phi::DrawGrid#parent_color?

parent_ctl3d => Phi::WinControl#parent_ctl3d

parent_ctl3d= => Phi::WinControl#parent_ctl3d=

parent_ctl3d? => Phi::WinControl#parent_ctl3d?

parent_font => Phi::DrawGrid#parent_font

parent_font= => Phi::DrawGrid#parent_font=

parent_font? => Phi::DrawGrid#parent_font?

parent_form => Phi::Control#parent_form

parent_handle => Phi::WinControl#parent_handle

parent_show_hint => Phi::DrawGrid#parent_show_hint

parent_show_hint= => Phi::DrawGrid#parent_show_hint=

parent_show_hint? => Phi::DrawGrid#parent_show_hint?

parent_window => Phi::WinControl#parent_window

parent_window= => Phi::WinControl#parent_window=

perform => Phi::Control#perform

popup_menu => Phi::DrawGrid#popup_menu

popup_menu= => Phi::DrawGrid#popup_menu=

prop_info => Phi::Component#prop_info

read_state => Phi::WinControl#read_state

realign => Phi::WinControl#realign

recreate_wnd => Phi::WinControl#recreate_wnd

rect => Phi::Control#rect

rect= => Phi::Control#rect=

refresh => Phi::Control#refresh

reload_docked_control => Phi::WinControl#reload_docked_control

remove_control => Phi::WinControl#remove_control

repaint => Phi::Control#repaint

reset_ime => Phi::WinControl#reset_ime

right => Phi::Control#right

right= => Phi::Control#right=

row => Phi::DrawGrid#row

row= => Phi::DrawGrid#row=

row_count => Phi::DrawGrid#row_count

row_count= => Phi::DrawGrid#row_count=

row_heights => Phi::DrawGrid#row_heights

rows

scale_by => Phi::WinControl#scale_by

scale_controls => Phi::WinControl#scale_controls

screen_to_client => Phi::Control#screen_to_client

scroll_bars => Phi::DrawGrid#scroll_bars

scroll_bars= => Phi::DrawGrid#scroll_bars=

scroll_by => Phi::WinControl#scroll_by

select_cell => Phi::DrawGrid#select_cell

select_first => Phi::WinControl#select_first

select_next => Phi::WinControl#select_next

send_to_back => Phi::Control#send_to_back

set_bounds => Phi::Control#set_bounds

set_child_order => Phi::WinControl#set_child_order

set_focus => Phi::WinControl#set_focus

set_ime => Phi::WinControl#set_ime

set_z_order => Phi::WinControl#set_z_order

show => Phi::Control#show

show_control => Phi::WinControl#show_control

show_hint => Phi::DrawGrid#show_hint

show_hint= => Phi::DrawGrid#show_hint=

show_hint? => Phi::DrawGrid#show_hint?

showing => Phi::WinControl#showing

showing? => Phi::WinControl#showing?

site_info => Phi::WinControl#site_info

stop_align => Phi::WinControl#stop_align

tab_order => Phi::DrawGrid#tab_order

tab_order= => Phi::DrawGrid#tab_order=

tab_order_list => Phi::WinControl#tab_order_list

tab_stop => Phi::WinControl#tab_stop

tab_stop= => Phi::WinControl#tab_stop=

tab_stop? => Phi::WinControl#tab_stop?

top => Phi::Control#top

top= => Phi::Control#top=

top_parent_handle => Phi::WinControl#top_parent_handle

top_row => Phi::DrawGrid#top_row

top_row= => Phi::DrawGrid#top_row=

update => Phi::Control#update

update_control_state => Phi::WinControl#update_control_state

use_dock_manager => Phi::WinControl#use_dock_manager

use_dock_manager= => Phi::WinControl#use_dock_manager=

use_dock_manager? => Phi::WinControl#use_dock_manager?

visible => Phi::DrawGrid#visible

visible= => Phi::DrawGrid#visible=

visible? => Phi::DrawGrid#visible?

visible_col_count => Phi::DrawGrid#visible_col_count

visible_dock_client_count => Phi::WinControl#visible_dock_client_count

visible_row_count => Phi::DrawGrid#visible_row_count

width => Phi::Control#width

width= => Phi::Control#width=

window_handle => Phi::WinControl#window_handle

window_handle= => Phi::WinControl#window_handle=

write_res_file => Phi::Component#write_res_file

Last modified:2004/10/28 23:36:34
Keyword(s):
References:[Phi-Classes] [Phi-Constants] [Phi::StringGrid] [image_of_controls]