Re: Scroll content inside InputField?
- To: mathgroup at smc.vnet.net
- Subject: [mg109812] Re: Scroll content inside InputField?
- From: "Alexey Popkov" <lehin.p at gmail.com>
- Date: Wed, 19 May 2010 07:01:04 -0400 (EDT)
- References: <hsgnfq$d20$1@smc.vnet.net>
I subscribe to the Syd's question. How to create an InputField where you can enter the new line symbol by pressing Enter? "Syd Geraghty" <sydgeraghty at me.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:hsj5f3$j79$1 at smc.vnet.net... > 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. > >