[Gtk-sharp-list] GtkToolButton and enums

Emerson Posadas toxickore at linuxmail.org
Wed Jul 20 12:29:27 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello, maybe this is a silly question but i haven't found an answer.
First of all, i'm trying to make a toolbar with buttons from scratch.
I've see with glade that
exists a widget called GtkToolButton and i want to recreate it from
code but the Class ToolButton
does not exist. I've made an aproach of that button but it does not
look the same way: create an image,
create a button, attach the image to the button, attach the button to
the toolbar.

And the other one. Sometimes watching the monodoc documentation i
have read that exists some enums
in some widgets, but i can't acces those enum properties for the
widgets. For example:

Toolbar tBar = new Toolbar();
tBar.ToolbarStyle = 0; <--- It creates the intermediate code
tBar.ToolbarStyle = 1; <--- Constant value cannot be converted to
Gtk.ToolbarStyle
tBar.ToolbarStyle = "Icons"; <--- Constant value "Icons" cannot be
converted to Gtk.ToolbarStyle

Thanks for reading this.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32) - WinPT 0.7.96rc1

iD4DBQFC3ol+76YHuLjcnvURAjSbAKDgZfde20a+WrRzB5Wct6nOnf1ijACYwAAj
MojD2gBgu+esM9SZ6zn2LA==
=HqeR
-----END PGP SIGNATURE-----


-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.

Powered by Outblaze


More information about the Gtk-sharp-list mailing list