setting partial GtkEntry text



I need to implement a modified form of an EntryCompletion,
where the user would input data into the GtkEntry, and the
program would auto-complete the text inside of the GtkEntry
box, without opening the popup list of all possible matches
(it would default to the first match of the list). The problem is
that the "powers that be" would like the text that is automatically
inserted into the GtkEntry box to be either in a different color
in reverse, so that the user can tell what he.she has typed
so far.
 
For example, if the user was filling out a field for States,
when they typed a 'N' the Entry box would look like
    NORTH CAROLINA
with the 'N' in one color and the ORTH CAROLINA in another
color (or in reverse). Then when they next typed an 'E' the
entry box would change to
    NEBRASKA
with the NE in one color, the BRASKA in another....
 
Is there a way to both insert text into a GtkEntry box and
somehow change its color, or font, using Pango. I thought
about maybe pretending I had selected the additional text
to get it highlighted, but I'm not sure how to go about it.
 
Help!
 
 
Zvi Sebrow


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]