[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Resizing and moving a window?



>Is there a way to resize and move a window at the same time? Right now,
>I am using this function, but it doesn't work very well, since it moves,
>then resizes:
>
>sub _setrect ($$) {
>  my ($win, $nr) = @_;
>
>  MoveWindow $win, $nr->left, $nr->top, 0;
>  SizeWindow $win, $nr->right - $nr->left, $nr->bottom - $nr->top;
>}
>

Not that I am aware of, but you may be able to mimic such behavior by using 
HideWindow and ShowWindow:

  HideWindow $win;            # Hide window from view

  MoveWindow $win, $nr->left, $nr->top, 0;
  SizeWindow $win, $nr->right - $nr->left, $nr->bottom - $nr->top;

  ShowWindow $win;            # Restore window in new position

Depending on the speed of the computer, the user would experience some delay.  I
haven't tested this, but it may be worth a shot.

-Alex

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch