Contents | Index | < Browse | Browse >

  GADREDRAW GuiName LeftGad TopGad RightGad BottomGad OFFSET

  This provides the most accurate redrawing. 

  It works like  PartRedraw  but instead of actual positions for
  Left, Top, Width, Height, you give the GadIDs of the gadgets
  whose borders will be used to calculate the area to erase.
  This provides better precision.

  > GadRedraw mygui.gc 10 11 12 13 1

  If "10" is, for example, the GadID of a button, the position of
  the button's Left edge will be used as the left edge of the 
  rectangle to be erased.

  OFFSET is a number that these sizes will be shifted by. 

  So, in the above example, where OFFSET=1, the erase rectangle will
  fall one pixel inside of the left edge of the button's border, and
  accordingly for all other gadgets too.

  and OFFSET of -1 will Erase from 1 pixel outside the borders.