#lang scheme

(require "../../mred-plugin.ss"
         "../project/preview.ss" ; needed for plugin% class... ; ????  WARNING: make-plugin??

 [type 'frame]
 [tooltip "Frame"]
 [button-group "Containers"]
 [widget-class preview-frame%]
 [code-gen-class frame%] ; for code generation. By default the same as widget-class
 [parent-class (list frame% project%)] ; can only instanciate under a frame% or a project%
 [necessary '(label parent)] ; necessary properties
 [options '(id)]
 ( ; widget properties
  [label "Frame"]
  ;[parent #f] ; NO! do NOT use the parent property!
  ; optional
  [width #f]	 
  [height #f]	 
  [x #f]
  [y #f]	 
  [style (prop:popup
          (prop:some-of '(no-resize-border 
                          no-caption no-system-menu hide-menu-bar
                          mdi-parent mdi-child
                          toolbar-button float metal)
  [enabled #t]	 
  [border 0]	 
  [spacing 0]	 
  [alignment (alignment-values)]
  [min-width 70]
  [min-height 30]	 
  [stretchable-width #t]
  [stretchable-height #t]