MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: imagesize to full width of current screen

Mitch Murphy wrote:
> greetings,
> i'm trying to determine the current width of the notebook screen to  
> size graphics and manipulate's to fit the whole width of the window.  
> i've looked at PageWidth, ImageSize->All, ImageSize->Full, ImageSize- 
>  >Large, ImageSize->Scaled[s] (ImageSize->Scaled@1 is equivalent to  
> ImageSize->Full), $* variables, ...
> this is a common feature in other programming languages (javascript in  
> web browsers for example). i've also searched this mailing list  
> without success. any ideas?
> thanks,
> Mitch

the information is in the WindowSize option of the corresponding
notebook object. This will give you the size of the notebook that
evaluates it:

WindowSize /. Options[EvaluationNotebook[]]

when working with manipulates and palettes you also might want to use
ButtonNotebook[] , SelectedNotebook[] and Notebooks[] to get a handle at
the notebook you are after.

Just in case: You can also get the size of the screen with:

ScreenRectangle /. Options[$FrontEnd]

which then lets you choose a reasonable size for a new notebook/window.



  • Prev by Date: Re: shooting method
  • Next by Date: integration - Interpolating Function
  • Previous by thread: Re: imagesize to full width of current screen
  • Next by thread: Re: imagesize to full width of current screen