Re: imagesize to full width of current screen
- To: mathgroup at smc.vnet.net
- Subject: [mg92020] Re: imagesize to full width of current screen
- From: Albert Retey <awnl at gmx-topmail.de>
- Date: Wed, 17 Sep 2008 04:29:34 -0400 (EDT)
- References: <gapf91$o33$1@smc.vnet.net>
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. hth, albert