Re: Scroll content inside InputField?
- To: mathgroup at smc.vnet.net
- Subject: [mg109732] Re: Scroll content inside InputField?
- From: Syd Geraghty <sydgeraghty at me.com>
- Date: Fri, 14 May 2010 05:34:35 -0400 (EDT)
Hi John, Is there a way of inputting a return character in the dynamic field so that paragraphs of text input can be accommodated? Cheers .... Syd Syd Geraghty B.Sc, M.Sc. sydgeraghty at mac.com Mathematica 7.0.1.0 for Mac OS X x86 (64 - bit) (12th September 2009) MacOS X V 10.6.1 Snow Leopard MacBook Pro 2.33 GHz Intel Core 2 Duo 2GB RAM On May 13, 2010, at 4:23 AM, John Fultz wrote: > 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.