MathGroup Archive 2010

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

Search the Archive

Re: Scroll content inside InputField?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109827] Re: Scroll content inside InputField?
  • From: Zachar István <replicatorzed at gmail.com>
  • Date: Wed, 19 May 2010 07:03:47 -0400 (EDT)
  • References: <hsgnfq$d20$1@smc.vnet.net>

On May 13, 1:23 pm, John Fultz <jfu... at wolfram.com> wrote:
> 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
> jfu... at wolfram.com
> User Interface Group
> Wolfram Research, Inc.



Dear John,

thanks for the answer, it helped me a lot!
Concerning Syd's question (can paragraph-breaks appear as input in
InputField): I as well am interested in a possible workaround.

Istvan Zachar


  • Prev by Date: Re: Scroll content inside InputField?
  • Next by Date: Re: Overloading StringJoin
  • Previous by thread: Re: Scroll content inside InputField?
  • Next by thread: Re: Scroll content inside InputField?