Hi list,
I have a small bug which I need to fix. Here is the
problem.
I have written an Text editor for our project. I
want a functionality that when user presses enter key in text area the cursor
should go on next line and for example if i press enter at lets say 7th line
then cursor should go on 8th. I hence catch signal for key-press-event, and the
call back function for key-press-event identify the key type and performs
operation accordingly.
The problem is when I press Enter, cursor goes to
the line 1 position 1 and puts '\n' there, So my entire contents in text area
gets shifted down by one line. Does anyone faced this problem before, I would be
glad if anyone can provide me how do i solve this particular problem? Right now
my GTK Version is 1.2
Waiting for the reply as earliest,
Thanks in advance,
Vikram
|