TextModel arrows controls
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 -- 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.
2014-11-24 18:29 GMT+01:00 Mark Rizun <mrizun@gmail.com>:
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.
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.
participants (2)
-
Mark Rizun -
Nicolai Hess