TextModel arrows controls

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

TextModel arrows controls

Mark Rizun
Hello!

I stumbled on a strange problem, when was using TextModel widget.
The problem is that I can't control I-beam pointer with arrow keys inside of TextModel.
They just do not work. Maybe I have to set some methods?

Best,
Mark
Reply | Threaded
Open this post in threaded view
|

Re: TextModel arrows controls

Nicolai Hess
2014-11-24 18:29 GMT+01:00 Mark Rizun <[hidden email]>:
Hello!

I stumbled on a strange problem, when was using TextModel widget.
The problem is that I can't control I-beam pointer with arrow keys inside of
TextModel.
They just do not work. Maybe I have to set some methods?

No other methods are needed:

TextModel new text:'hello' ; openWithSpec

This opens a window with the text 'hello' and I can move the cursor with the
arrow keys (os: windows 7).
Can you give a minimal example that does not work for you.


 

Best,
Mark



--
View this message in context: http://forum.world.st/TextModel-arrows-controls-tp4792013.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|

Re: TextModel arrows controls

Mark Rizun
TextModel new text:'hello' ; openWithSpec

This opens a window with the text 'hello' and I can move the cursor with the
arrow keys (os: windows 7).

You are right, it works.
 
Can you give a minimal example that does not work for you.

I use TextModel as a base class for my own text model (need it for RewriteTool, which I'm implementing). Anyway I found where problem was.