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 = file,    198,  40, 16, 16, evLoad
  button = max,     220,  40, 16, 16, evFullScreen
  button = min,     244,  40, 16, 16, evIconify
  button = exit,    267,  40, 16, 16, evExit

  button = stop,     30,  90, 35, 35, evStop
  button = play,    172,  87, 35, 35, evPlaySwitchToPause
  button = pause,   172,  87, 35, 35, evPauseSwitchToPlay

  button = rewind,  231,  89, 28, 11, evBackward10sec
  button = forward, 269,  89, 28, 11, evForward10sec
  button = prev,    231, 113, 28, 11, evPrev
  button = next,    269, 113, 28, 11, evNext

  potmeter = pos,    30, 0, 119, 23, 60, 46, evSetMoviePosition

  potmeter = volume, 30, 0,  93, 83, 47, 47, evSetVolume

  ; font=fontname,fontid
  font = symbols, symbols
  font = font,    font

  ; dynamic label
  ; dlabel=x,y,sx,align,fontid,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.
  ;       $l  = 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 =  13, 32,  65, 1, symbols, "$1"
    ;dlabel =  73,  9,  53, 1, symbols, "$a"
    ;dlabel = 141,  9,  91, 1, symbols, "$T"
    dlabel = 192, 20,  89, 1, font, "    $t - $o    "
    ;dlabel = 119, 30,   7, 1, symbols, "$s"
    ;dlabel = 119, 30,   7, 1, symbols, "$e"
    ;dlabel = 119, 30,   7, 1, symbols, "$l"
 end

 window = sub

  ;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 = 49,153,205

 end





