Re: GtkEntry text selection
- From: "Anurag Chaudhary" <chaudharyanurag hotmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkEntry text selection
- Date: Thu, 04 Jan 2007 10:31:15 +0530
The real problem is not setting the cursor position but the automatic
selection of the text in the GtkEntry field.
The text should remain un-selected when focussed.
From: Micah Carrick <email micahcarrick com>
Reply-To: email micahcarrick com
To: gtk-app-devel-list gnome org
Subject: Re: GtkEntry text selection
Date: Wed, 03 Jan 2007 13:06:17 -0800
You can use the "focus" signal to set the cursor position using
gtk_editable_set_position with a position of -1 to indicate the end of
the text.
- Micah Carrick
http://www.micahcarrick.com | http://www.gtkforums.com
Anurag Chaudhary wrote:
> When I bring focus to a GtkEntry, all of its text gets selected by
> default. How can I disable this behaviour?
> I want the text to remain un-selected and cursor in the end.
>
> Thanks
> Anurag
>
> _________________________________________________________________
> Tried the new MSN Messenger? It's cool! Download now.
> http://messenger.msn.com/Download/Default.aspx?mkt=en-in
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_________________________________________________________________
Catch all the cricketing action right here. Live score, match reports,
photos et al. http://content.msn.co.in/Sports/Cricket/Default.aspx
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]