Page 1 of 1

Some questions about gtk

Posted: Wed Sep 12, 2007 2:18 pm
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

Posted: Wed Sep 12, 2007 2:37 pm
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)

Posted: Thu Sep 13, 2007 2:34 am
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 ;)