Cannot see the cursor
| Thu, 2008-05-29 11:35 | |
|
I tried to set cursor and it's not working. the code is as follows: //constructor //display function The text in the displayTenString can be shown on the screen, but the cursor is not Anybody knows how to solve the problem? |
|






Forum posts: 1210
Did you make sure that the control has focus? Because the cursor will only show if the control has focus, and I think if you do not use stand-in controls i.e. have the EQikCtrlFlagIsEditInPlace flag set.
René Brunner
Forum posts: 13
Thanks for the reply. However, it seems there is no such EQikCtrlFlagIsEditInPlace in the SDK(UIQ2.1) I use, anymore idea?
Forum posts: 1210
Ok, that flag is UIQ3 stuff.
No, on UIQ2 it should be enough to properly give the control the focus to make the cursor visible. Did you do that?
René Brunner
Forum posts: 13
Well, there should be. However, I am not familiar with the SDK. By checking the code found on Internet, they do not have any control being called.
Forum posts: 1210
I don't understand what you mean with this.
Anyway, maybe your problem only looks like one but isn't. I except SetCursorPosL() to work, and even if you do not *see* the cursor right after that, everything will be ok, because if the user activates the control, the cursor will be there where you want it to be, i.e. at the start of the text, and all is well.
René Brunner
Forum posts: 13
Well, I guess you are right. By calling CursorPos( ), it does return me the position of the cursor, just the cursor itself is not drawn on the screen.