Name

windowpanel — A draggable panel that provides common behavior for various window classes.

Synopsis

LZX: windowpanel
JavaScript: windowpanel
Type: Class
Access: public
Topic: Components.Laszlo Components
Declared in: lps/components/lz/windowpanel.lzx

Description

The windowpanel tag creates a floating view that has a title area and can be moved by the user. It provides common behavior for window, modaldialog, and alert.

Example 51. window panel

              <canvas width="300" height="150">
              <windowpanel x="10" y="10" width="200" height="100"
              title="windowpanel" closeable="true">
              <text>Hello</text>
              </windowpanel>
              </canvas>
            

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basewindow » windowpanel

Known Subclasses

Known Direct Subclasses: modaldialog, window

Details

Properties (9)

bgcolor
<attribute name="bgcolor" />
public var bgcolor;
closeable
<attribute name="closeable" value="false" />
public var closeable;
If true, the window will have a close control. Default: false
defaultplacement
<attribute name="defaultplacement" type="string" value="content" />
public var defaultplacement : String;
inset_bottom
<attribute name="inset_bottom" value="20" />
public var inset_bottom;
The bottom inset for the window content area. Default: 20
inset_left
<attribute name="inset_left" value="6" />
public var inset_left;
The left inset for the window content area. Default: 6
inset_right
<attribute name="inset_right" value="11" />
public var inset_right;
The right inset for the window content area. Default: 11
inset_top
<attribute name="inset_top" value="22" />
public var inset_top;
The top inset for the window content area. Default: 22
title
<attribute name="title" type="string" value="" />
public var title : String;
the title of a window : this string appears at the top of the window. Default: none
titlearea_inset_top
<attribute name="titlearea_inset_top" value="6" />
public var titlearea_inset_top;
The top inset for the window title area. Default: 6

LZX Synopsis

<class name="windowpanel" extends=" basewindow ">
  <attribute name=" bgcolor " />
  <attribute name=" closeable " value="false" />
  <attribute name=" defaultplacement " type="string" value="content" />
  <attribute name=" inset_bottom " value="20" />
  <attribute name=" inset_left " value="6" />
  <attribute name=" inset_right " value="11" />
  <attribute name=" inset_top " value="22" />
  <attribute name=" title " type="string" value="" />
  <attribute name=" titlearea_inset_top " value="6" />
</class>

JavaScript Synopsis

public windowpanel extends  basewindow  {
  public var bgcolor ;
  public var closeable ;
  public var defaultplacement  : String;
  public var inset_bottom ;
  public var inset_left ;
  public var inset_right ;
  public var inset_top ;
  public var title  : String;
  public var titlearea_inset_top ;
}