[Glade-users] Text Entry Box

Michael Fasolino Michael_Fasolino at raytheon.com
Tue Feb 20 11:14:13 EST 2007


Tristan,

I should have mentioned this in my original email, but I am using gtkmm. 
My text entry box is of class Gtk::Entry.  The compiler that I am using 
(MSVS 2005) gives me an error when I try to use the 
get_editable_set_position() fn since it can't "convert parameter 1 from 
Gtk::Entry *' to 'GtkEditable *'".

I can't find a member function similar to get_editable_set_position() that 
belongs to the Gtk::Entry class.  Is there a way to type cast the 
GtK::Entry into a GtkEditable type?  Or do you know of a similar function 
that will operate on a Gtk::Entry type? 

Sorry for my confusion, I am pretty new to GTK and Glade.  Thanks for your 
help!


Michael




Tristan Van Berkom <tvb at gnome.org> 
02/20/2007 09:42 AM

To
Michael Fasolino <Michael_Fasolino at raytheon.com>
cc
glade-users at lists.ximian.com
Subject
Re: [Glade-users]  Text Entry Box






On Tue, 2007-02-20 at 09:32 -0600, Michael Fasolino wrote:
> 
> All, 
> 
> I am using a Text Entry box (GtkEntry), and am trying to find a way to
> align the text in such a way that when the text is longer than the
> entry box can display, it will display the last part of the text and
> not the first. 
> 
> Specifically, I am allowing the user to enter in a file name (with
> path).  I also have a button to allow the user to create the "next"
> output file (which adds an index to the existing file name).  My
> problem is that when I hit the "Next" button the alignment of the text
> in the Entry Box slides to the beginning of the file name, and thus
> all I am able to see is the directory structure and not the file
> name. 
> 
> It seemed alining the text so the last part would be visible should be
> possible, but I could not find how to do it anywhere in the
> documentation... Is there something that I am missing? 
> 
> Any help would be greatly appreciated! 
> 

You can set the cursor position to the end using this function:
http://developer.gnome.org/doc/API/2.0/gtk/GtkEditable.html#gtk-editable-set-position


Cheers,
              -Tristan



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20070220/420be501/attachment.html 


More information about the Glade-users mailing list