<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../style/class_view.xsl"?>
<Dialog>
===============================================
  Dialog - class to represent Dialog
===============================================
<rm>Dialog.__doc__ reports only 'Dialog'

... so use this information with care</rm>

  see 'yourFontLabFolder/Macros/Effects/digital.py' for an example
<CONSTRUCTOR>
  Dialog(DialogClass) - generic constructor
</CONSTRUCTOR>
<ATTRIBUTES>
  size (<cl>Point</cl>)              - size of the dialog as a <cl>Point</cl> object
  position (<cl>Point</cl>)          - positin of the dialog's origin
  rectangle (<cl>Rect</cl>)          - combination of size and position
  title (string)            - title of the dialog
  ok (string)               - text on the OK button
  cancel (string)           - text on the Cancel button
</ATTRIBUTES>
<OPERATIONS>
  none
</OPERATIONS>
<METHODS>
  Center()                    - center dialog on screen

  MoveTo(Point) | MoveTo(x,y) - move dialog to a specified position <rm>cannot get it into working</rm>

  AddControl(integer ControlType, <cl>Rect</cl> dimension, string identifier, integer ControlStyle)
                              - adds a control to the dialog, see <cl>FLdict</cl> for
                                Type- and Style-constants
                                

  GetValue(string identifier) - get value from the specified control

  PutValue(string identifier) - put value to the specified control

  Enable(string identifier, integer value)
                              - enable (value=1) or disable (value=0) the specified control

  Show(string identifier, integer value)
                              - show (value=1) or hide (value=0) the specified control

  SetLabel(string identifier, string value)
                              - set the label of the specified control

  GetRect(string identifier)  - get dimension of the specified control as a <cl>Rect</cl> object

  Repaint(string identifier)  - redraw the specified (custom)control

  Run()                       - run the dialog

  End()|End(integer returnvalue) - end the dialog
</METHODS>
</Dialog>
