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

image_of_controls

require "phi-all"
puts Phi.constants.select{|n|
   ((c = Phi.const_get(n)).is_a? Class) &&
   (( c < Phi::Control ) || ( c < Phi::CommonDialog))
}.sort.collect{|n|"!! [[Phi::#{n}]]"}

Phi::ActionMainMenuBar

Phi::ActionManager

Phi::ActionToolBar

Phi::Animate

Phi::ApplicationEvents

Phi::AreaSeries

AreaSeries.png
require "phi"
require "chart"

form = Phi::Form.new
chart = Phi::Chart.new form
form.client_width = chart.width
form.client_height = chart.height
#-- Area
series1 =  Phi::AreaSeries.new
series2 =  Phi::AreaSeries.new
#--
series1.parent_chart = chart
series2.parent_chart = chart
series1.name = "Red"
series2.name = "Blue"
#
series1.add(20,"step_1",Phi::CL_BLUE)
series1.add(30,"step_2",Phi::CL_BLUE)
series1.add(45,"step_3",Phi::CL_BLUE)

series2.add(15,"xx",Phi::CL_RED)
series2.add(25,"xx",Phi::CL_RED)
series2.add(30,"xx",Phi::CL_RED)
form.show
Phi.mainloop

Phi::BarSeries

BarSeries.png
require "phi"
require "chart"

form = Phi::Form.new
chart = Phi::Chart.new form
form.client_width = chart.width
form.client_height = chart.height
#-- Bar
series1 =  Phi::BarSeries.new
series2 =  Phi::BarSeries.new
#--
series1.parent_chart = chart
series2.parent_chart = chart
series1.name = "Red"
series2.name = "Blue"
#
series1.add(20,"step_1",Phi::CL_BLUE)
series1.add(30,"step_2",Phi::CL_BLUE)
series1.add(45,"step_3",Phi::CL_BLUE)

series2.add(15,"xx",Phi::CL_RED)
series2.add(25,"xx",Phi::CL_RED)
series2.add(30,"xx",Phi::CL_RED)
form.show
Phi.mainloop

Phi::Bevel

http://cpfqyr.com/

Phi::BoundLabel

Phi::Button

Phi::Chart

Phi::ChartSeries

Phi::CheckBox

CheckBox.jpg
require "phi"
form = Phi::Form.new
obj_1 = Phi::CheckBox.new form, :check_box_1, "チェック1"
obj_2 = Phi::CheckBox.new form, :check_box_2, "チェック2"
obj_2.top = obj_1.bottom
form.show
Phi.mainloop

Phi::CheckListBox

CheckListBox.jpg
require "phi"
form = Phi::Form.new :form, "Phi::CheckListBox sample"
check_list_box = Phi::CheckListBox.new form, "caption"
check_list_box.items.add("item_1")
check_list_box.items.add("item_2")
check_list_box.items.add("item_3")
check_list_box.items.add("item_4")
form.show
Phi.mainloop

Phi::ColorBox

ColorBox.jpg
require "phi"
form = Phi::Form.new :form, "Phi::ColorBox sample"
color_box = Phi::ColorBox.new form
form.show
Phi.mainloop

Phi::ColorDialog

ColorDialog.jpg
require "phi"
require "dialogs"
color_dialog = Phi::ColorDialog.new
if color_dialog.execute
  p color_dialog.color     #=> 65535  (既存)   11195731(作成)
  require "Phi_sym"
  p color_dialog.color_sym #=> :yellow(既存)   11195731(作成)
else
  p :canceled
end

Phi::ComboBox

ComboBox.jpg
require "phi"
form = Phi::Form.new
obj_1 = Phi::ComboBox.new form, :combo_box_1
obj_1.items.add "項目1"
obj_1.items.add "項目2"
form.show
Phi.mainloop

Phi::ComboBoxEx

Phi::CommonCalendar

Phi::ControlBar

Phi::CoolBar

Phi::CustomBarSeries

Phi::CustomGrid

Phi::CustomizeDlg

Phi::DBCheckBox

Phi::DBComboBox

Phi::DBCtrlGrid

Phi::DBEdit

Phi::DBGrid

DBGrid.jpg
require "phi"
require "dir_to_dataset"
form = Phi::Form.new
obj = Phi::DBGrid.new form
obj.data_source = Phi::DataSource.new dir_to_dataset
form.show
Phi.mainloop

Phi::DBImage

Phi::DBListBox

Phi::DBLookupComboBox

Phi::DBLookupListBox

Phi::DBMemo

Phi::DBNavigator

Phi::DBRadioGroup

Phi::DBRichEdit

Phi::DBText

Phi::DateTimePicker

DateTimePicker.jpg
require "phi"
require "cal"
form = Phi::Form.new :form, "Phi::DateTimePicker sample"
date_time_picker = Phi::DateTimePicker.new form
form.show
Phi.mainloop

Phi::DrawGrid

http://znzwam.com/

Phi::Editor

Jun

Phi::FastLineSeries

FastLineSeries.png
require "phi"
require "chart"

form = Phi::Form.new
chart = Phi::Chart.new form
form.client_width = chart.width
form.client_height = chart.height
#-- FastLine
series1 =  Phi::FastLineSeries.new
series2 =  Phi::FastLineSeries.new
#--
series1.parent_chart = chart
series2.parent_chart = chart
series1.name = "Red"
series2.name = "Blue"
#
series1.add(20,"step_1",Phi::CL_BLUE)
series1.add(30,"step_2",Phi::CL_BLUE)
series1.add(45,"step_3",Phi::CL_BLUE)

series2.add(15,"xx",Phi::CL_RED)
series2.add(25,"xx",Phi::CL_RED)
series2.add(30,"xx",Phi::CL_RED)
form.show
Phi.mainloop

Phi::FindDialog

FindDialog.jpg
require "phi"
require "dialogs"
form = Phi::Form.new
button = Phi::Button.new form,proc{
  find_dialog = Phi::FindDialog.new
  find_dialog.on_find=proc{|*args|p args}
  p find_dialog.execute
}
form.show
Phi.mainloop

Phi::FontDialog

FontDialog.jpg
require "phi"
require "dialogs"
form = Phi::Form.new :form ,"フォントダイアログの見本"
edit = Phi::Edit.new form, "フォント abc"
button = Phi::Button.new form,proc{
  font_dialog = Phi::FontDialog.new
  font_dialog.font = edit.font
  if font_dialog.execute
    edit.font = font_dialog.font
  end
}
button.top = edit.bottom
form.show
Phi.mainloop

Phi::Form

Phi::FormBrowser

Phi::FormConsole

Phi::FormStringsPrint

Phi::Frame

Phi::GroupBox

Phi::HeaderControl

Phi::HotKey

Phi::Image

Phi::Label

Phi::LabeledEdit

Phi::LineSeries

LineSeries.png
require "phi"
require "chart"

form = Phi::Form.new
chart = Phi::Chart.new form
form.client_width = chart.width
form.client_height = chart.height
#-- Line
series1 =  Phi::LineSeries.new
series2 =  Phi::LineSeries.new
#--
series1.parent_chart = chart
series2.parent_chart = chart
series1.name = "Red"
series2.name = "Blue"
#
series1.add(20,"step_1",Phi::CL_BLUE)
series1.add(30,"step_2",Phi::CL_BLUE)
series1.add(45,"step_3",Phi::CL_BLUE)

series2.add(15,"xx",Phi::CL_RED)
series2.add(25,"xx",Phi::CL_RED)
series2.add(30,"xx",Phi::CL_RED)
form.show
Phi.mainloop

Phi::ListBox

Phi::ListView

Phi::MaskEdit

Phi::MediaPlayer

Phi::Memo

Phi::MonthCalendar

MonthCalendar.jpg
require "phi"
require "cal"
form = Phi::Form.new :form, "Phi::MonthCalendar sample"
month_calendar = Phi::MonthCalendar.new form
form.show
Phi.mainloop

Phi::MozillaBrowser

Phi::OleContainer

Phi::OpenDialog

Phi::OpenPictureDialog

OpenPictureDialog.jpg
require "phi"
require "dialogs"
form = Phi::Form.new :form ,"OpenPictureDialogの見本"
button = Phi::Button.new form,proc{
  open_picture_dialog = Phi::OpenPictureDialog.new
  if open_picture_dialog.execute
    p open_picture_dialog.file_name #=> "C:/Program  Files/Apollo/sample/arima.ico"
  end
}
form.show
Phi.mainloop

Phi::PageControl

PageControl.jpg
require "phi"
form = Phi::Form.new

page_control = Phi::PageControl.new form
tab_sheet_1 = Phi::TabSheet.new page_control, "ページ1", proc{p :show_1}
tab_sheet_2 = Phi::TabSheet.new page_control, "ページ2", proc{p :show_2}

form.show
Phi.mainloop

Phi::PageScroller

Phi::PaintBox

Phi::Panel

Phi::PieSeries

PieSeries.png
require "phi"
require "chart"
form = Phi::Form.new
chart = Phi::Chart.new form
form.client_width = chart.width
form.client_height = chart.height
#-- Pie
series1 =  Phi::PieSeries.new
series1.parent_chart = chart
series1.add(20,"label_blue",Phi::CL_BLUE)
series1.add(30,"label_yellow",Phi::CL_YELLOW)
series1.add(40,"label_red",Phi::CL_RED)
form.show
Phi.mainloop

Phi::PrevX

Phi::PrintDialog

PrintDialog.jpg

Phi::PrinterSetupDialog

PrinterSetupDialog.jpg
#! ruby -Ks
require "phi"
form = Phi::Form.new
button = Phi::Button.new form
button.on_click=proc{
  dialog = Phi::PrinterSetupDialog.new
  if dialog.execute
    # 戻り値は参照されず、設定内容がPrintDialogに反映されます。
   else
    p "canceled"
  end
}
form.show
Phi.mainloop

Phi::ProgressBar

ProgressBar.jpg
require "phi"
form = Phi::Form.new :form, "Phi::ProgressBar sample"
#
progress_bar = Phi::ProgressBar.new form, "caption"
progress_bar.min=0
progress_bar.max=60
progress_bar.smooth = true
#
label = Phi::Label.new form
label.left = progress_bar.right + 5
#
timer = Phi::Timer.new
timer.on_timer = proc{
  progress_bar.position = Phi::DateTime.now.second
  label.caption = "#{progress_bar.position} in [#{progress_bar.min}..#{progress_bar.max}]"
}
form.show
Phi.mainloop

Phi::PropGrid

Phi::RadioButton

Phi::RadioGroup

RadioGroup.jpg
require "phi"
form = Phi::Form.new :form, "Phi::RadioGroup sample"
radio_group = Phi::RadioGroup.new form, "radio group caption"
radio_group.items.add "button1"
radio_group.items.add "button2"
radio_group.items.add "button3"
radio_group.on_click =  proc{|sender|
  index = sender.item_index
  button_caption = sender.items[index]
  p [index, button_caption]
}
form.show
Phi.mainloop

Phi::ReplaceDialog

Phi::RichEdit

Phi::SaveDialog

Phi::SavePictureDialog

Phi::ScrollBar

Phi::ScrollBox

Phi::Shape

Phi::SpeedButton

Phi::Splitter

Phi::StaticText

Phi::StatusBar

Phi::StrColGrid

Phi::StringGrid

Phi::TabControl

Phi::TabSheet

Phi::ToolBar

Phi::ToolButton

Phi::TrackBar

Phi::TreeView

TreeView.jpg
require "phi"
form = Phi::Form.new :form, "Phi::TreeView sample"
tree_view = Phi::TreeView.new form
5.times{|n|
  child = tree_view.items.add(nil, "child_#{n}")
  grandchild = tree_view.items.add_child(child, "grandchild_#{n}_1")
}
form.show
Phi.mainloop

Phi::UpDown

Phi::ValueListEditor

ValueListEditor.jpg
require "phi"
require "Phi_sym"
form = Phi::Form.new

value_list_editor = Phi::ValueListEditor.new form
attrs = value_list_editor.methods.grep(/\=$/).sort
attrs.each{|k|
  name=k[0..-2]
  next if /^\=/ =~ name
  val = value_list_editor.instance_eval(name) rescue nil
  next if val.nil?
  s = "#{name}=#{val.inspect}"
  value_list_editor.strings.add(s)
}
form.show
Phi.mainloop

Phi::WebBrowser

Phi::WinControl

Last modified:2007/07/20 11:39:41
Keyword(s):
References: