#! ruby
require 'phi' ; include Phi
require "mci"

path   = "c:\\windows\\clock.avi"
form1   = Form.new
button1 = Button.new form1
form2   = Form.new
panel1  = Panel.new form2
mp1    = MediaPlayer.new form2

button1.on_click = proc{
  form2.show;
  form2.window_state = WS_MAXIMIZED
#  mp1.notify = false;
#  mp1.display = panel1
  mp1.file_name = path
  mp1.open;
#  mp1.display_rect = form2.client_rect;
  mp1.play;
}

form1.show
mainloop
