Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to make an InputField with a horizontal cursor, like this:

enter image description here

Note that the blinking cursor should be horizontal and not the mouse pointer! Nevertheless, text input should still be horizontal and not vertical. The code below shows an InputField with the standard vertical cursor but I want a horizontal one.

x = Null;
Style[InputField[Dynamic[x], ImageSize -> {180, 60}, Alignment -> Center], Bold, 20]

Is this possible?

share|improve this question
Rotate[Style[InputField[Dynamic[x], ImageSize -> {180, 60}, Alignment -> Center],Bold, 20], Pi/2]. – cormullion Feb 12 '13 at 11:24
@cormullion Thanks for the answer,that was great ! however I am trying to get a horizontal inputfield as well as a horizontal cursor. – subbu Feb 12 '13 at 11:32
I think this works. x = Null; l = Graphics[{Thick, Line[{{0, 0}, {.07, 0}}]}]; MouseAppearance[ Style[InputField[Dynamic[x], ImageSize -> {180, 60}, Alignment -> Center], Bold, 20], l] – Ajasja Feb 12 '13 at 11:38
Or perhaps I'm still misunderstanding and the blinking cursor for text should be horizontal? – Ajasja Feb 12 '13 at 11:42
@Ajasja I want horizontal cursor with in InputField not mousePointer. – subbu Feb 12 '13 at 11:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.