require "phi"

form = Phi::Form.new :form,"何か書き込んで[印刷]ボタン"
button = Phi::Button.new form,:button,"印刷"
edit = Phi::RichEdit.new form
button.align = Phi::AL_TOP
edit.align = Phi::AL_CLIENT
button.on_click = proc{ edit.print('test')}

form.show
Phi.mainloop
