Contents | Index | < Browse | Browse >

  CHANGEGAD   GuiFile GadID  Left Top Width Height Title

  Similar to the CHANGEARG command, but this is easier and, if
  you  want to change more than one of the gadgets arguments,
  faster.

  Read the CHANGEARG command for more details. All the
  restrictions specified there, apply here as well.

  This command has no immediate effect, unless and until 
  the  ReDraw  command is used. 
  Then the window will be redrawn with this (and any other
  gadgets you may have changed) redrawn to their new dimensions
  and/or values.

  You can change the size of the WINDOW also, by giving 0 as the 
  GadID. If you give -1 for either of the Left or Top arguments, 
  these will remain unchanged.  Negative values for width & height 
  have the same meaning as the  WinBig command. Currently the Title 
  argument is disregarded.

  Example :

  ChangeGad  MyFile 2  10 20 100 20 "New Title"

  - will set the size of the gadget bearing a gad-ID of 2, to 100
    pixels wide by 20 pixels high, position it at 10,20 and give
    it the "New Title" - This will all happen after you have
    given the REDRAW command.

  ChangeGad MyFile 0 -1 -1 100 200 ""

  - Will resize MyFile's window to 100x200 (+ any resizing you
    may have done) and not change it's position.