Re: Scroll content inside InputField?
- To: mathgroup at smc.vnet.net
- Subject: [mg109709] Re: Scroll content inside InputField?
- From: John Fultz <jfultz at wolfram.com>
- Date: Thu, 13 May 2010 07:23:43 -0400 (EDT)
On Wed, 12 May 2010 07:32:45 -0400 (EDT), Zachar Istv=E1n wrote: > Dear Group, > > Is there a way to make the content of a fixed-sized InputField > scrollable? In this example, the list won't fit in the InputField, > still I want to make the full content accessible for the user, > preferably via some scrollbar, but I'm open to other methods as well. > > cont == Range@20; > Dynamic@InputField[Dynamic@cont, ImageSize -> {150, 40}] > > Thanks, > Istvan You can embed a vertically stretchable InputField inside of a scrollable Pane. Here's an example: Framed[Pane[ InputField[Dynamic[a], Appearance -> None, FieldSize -> {Automatic, {1, Infinity}}], ImageSize -> {300, 100}, ImageMargins -> 0, AppearanceElements -> {}, FrameMargins -> {{5, 5}, {0, 0}}, Scrollbars -> {False, True}], Background -> White, FrameMargins -> 0, FrameStyle -> Gray] Sincerely, John Fultz jfultz at wolfram.com User Interface Group Wolfram Research, Inc.