section = movieplayer
 window = main
  ;base=bitmap,x,y
  ; x:            | y:
  ;  -  0: left   |  -  0: top
  ;  - -1: center |  - -1: center
  ;  - -2: right  |  - -2: bottom
  base = main, -2, -2
  ;button=bitmap,x,y,sx,sy,msg
  ; 1. bitmap: pressed  | x,y: position in window
  ; 2. bitmap: released | msg: name of system message
  ; 3. bitmap: disabled | sx,sy: size of button
  button = exit,    288,   1, 48, 24, evExit
  button = stop,    209,  49, 20, 20, evStop
  button = play,    229,  49, 20, 20, evPauseSwitchToPlay
  button = pause,   229,  49, 20, 20, evPlaySwitchToPause
  button = prev,    249,  49, 20, 20, evPrev
  button = back,    269,  49, 20, 20, evBackward10sec
  button = forward, 289,  49, 20, 20, evForward10sec
  button = next,    309,  49, 20, 20, evNext
  hpotmeter = pos, 6, 20, NULL, 188,  0, 19, 48, 188, 20, evSetMoviePosition
  rpotmeter = NULL, 0, 0, volume, 57, 37, 68, 64, 4100, 0, 336, 0, 88, 72, evSetVolume
  ; font=fontfile
  font = font
  ; dynamic label
  ; dlabel=x,y,sx,align,fontfile,string ...
  ;  align: 0: right 1: center 2: left
  ;  str: $1  = hh:mm:ss
  ;       $2  = mmmm:ss
  ;       $3  = hh
  ;       $4  = mm
  ;       $5  = ss
  ;       $6  = movie length, hh:mm:ss
  ;       $7  = movie length, mmmm:ss
  ;       $v  = volume, xxx.xx%
  ;       $V  = volume, xxx.x
  ;       $b  = balance, xxx.xx%
  ;       $B  = balance, xxx.x
  ;       $$  = draw $
  ;       $a  = audio type ( nosound: char n, mono: char m, stereo: char t, etc )
  ;       $t  = track number
  ;       $o  = filename
  ;       $f  = filename with lower case
  ;       $F  = filename with upper case
  ;
  ;       $T  = stream type ( file: f, video cd: v, dvd: d, url: u ), if
  ;              font contain needed symbol.
  ;       $p  = draw play symbol, if mplayer is playing movie and font
  ;              contain playing symbol. ( char l )
  ;       $s  = draw stop symbol, if mplayer not playing movie and font
  ;              contain stop symbol. ( char s )
  ;       $e  = draw pause symbol, if playing is paused and font contain
  ;              pause symbol ( char e )
    dlabel =  20, 26,  82, 1, font, "$1"
    dlabel =  113, 26, 220, 1, font,    "    $t - $o    "
 end
 window = video
  ;base=bitmap,x,y,sx,sy
  ; x:            | y:
  ;  -  0: left   |  -  0: top
  ;  - -1: center |  - -1: center
  ;  - -2: right  |  - -2: bottom
  base = sub,-1,-1
  ; background=r,g,b
  ; window background color, default is black
  ; only subwindow, and decimal numbers
  background = 0,0,0
 end
end

