Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #1257

New lines in InputField

From "Chris Degnen" <degnen@cwgsy.net>
Newsgroups comp.soft-sys.math.mathematica
Subject New lines in InputField
Date 2011-03-30 09:11 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <imus3h$i05$1@smc.vnet.net> (permalink)

Show all headers | View raw


Can anyone suggest how to enter new lines in input text,
preferably using the return key?
In the example below I can paste into an input field a piece
of text which includes new lines, such as these two sentences,
but new lines can't be typed straight in to the input field,
as users are wont to do.


CreateDialog[{TextCell["Enter your text here:"], 
   InputField[Dynamic[input], String, FieldSize -> {50, 12}], 
   DefaultButton[
    DialogReturn[CreateDocument[TextCell[input, "Print"]]]]}, 
  NotebookEventActions -> {}];



Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

New lines in InputField "Chris Degnen" <degnen@cwgsy.net> - 2011-03-30 09:11 +0000

csiph-web