Some questions about gtk

Linux specific forum
Armoured
Enthusiast
Enthusiast
Posts: 365
Joined: Mon Jan 26, 2004 11:39 am
Location: ITALY
Contact:

Some questions about gtk

Post by Armoured »

Hi :)

1) There is a command like "gtk_entry_set_max_length" that work with the EditorGadget?

2) There is a gtk command to force a return in an EditorGadget when the text is too long?

3) There is a gtk command to change the transparence of a window?

4) There is a gtk command to center the text in a StringGadget?


Thanks
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

#1 : PB EditorGadget => GTK Gtk_textview
It may be a solution :
if the length of the content of editorgagdet is #MAXLENGTH, so you set the editorgadget not editable. If the user press del, so you del the last character and set the editorgadget editable.

#2 : May be this function : http://library.gnome.org/devel/gtk/unst ... nside-wrap

#3 : See these pages :
http://plan99.net/~mike/blog/?p=38
http://gtk.developpez.com/faq/?page=gtk ... ransparent

#4 : PB StringGadget => GTK gtk_entry
http://library.gnome.org/devel/gtk/unst ... -alignment
gtk_entry_set_alignment_(GadgetID(YourStrinGadget), 0.5)
Armoured
Enthusiast
Enthusiast
Posts: 365
Joined: Mon Jan 26, 2004 11:39 am
Location: ITALY
Contact:

Post by Armoured »

Progi1984 wrote:#1 : PB EditorGadget => GTK Gtk_textview
It may be a solution :
if the length of the content of editorgagdet is #MAXLENGTH, so you set the editorgadget not editable. If the user press del, so you del the last character and set the editorgadget editable.

#2 : May be this function : http://library.gnome.org/devel/gtk/unst ... nside-wrap

#3 : See these pages :
http://plan99.net/~mike/blog/?p=38
http://gtk.developpez.com/faq/?page=gtk ... ransparent

#4 : PB StringGadget => GTK gtk_entry
http://library.gnome.org/devel/gtk/unst ... -alignment
gtk_entry_set_alignment_(GadgetID(YourStrinGadget), 0.5)
Thanks Progi1984 ;)
Post Reply