require "phi"
include Phi

form = Form.new :form1, "Splitter"
memo1 = Memo.new form, :memo1, "memo1.. Move splitter between memo1 and memo2."
memo1.align = AL_TOP
splitter = Splitter.new form
splitter.align = AL_BOTTOM              ##  ensure center
splitter.align = AL_TOP
splitter.auto_snap = false
splitter.min_size = 30
##splitter.resize_style = RS_PATTERN    ##  gray line (default)
##splitter.resize_style = RS_UPDATE     ##  wall of controls
##splitter.resize_style = RS_LINE       ##  black line
##splitter.resize_style = RS_NONE       ##  corsor only
memo2 = Memo.new form, :memo2
memo2.align = AL_CLIENT
 
form.show
mainloop
