[Gtk-sharp-list] Get the Background Color of a Widget
Frank Gutierrez Domínguez
f.gutierrez at lab.matcom.uh.cu
Wed Apr 13 16:12:36 EDT 2011
Hi!
Im developing a Gtk# version of a Windows.Forms originally made custom
Control, so I have to substitute all references to Control members for
something equivalent in Gtk. Instead of inheriting my control from
System.Windows.Forms as the original, Im inheriting from Gtk.DrawingArea,
thus having access to Gtk.Widget members. The thing is in the original
Winforms implementation there are many references to
Control.BackgroundColor, like in:
if (this.BackColor == Color.Black)
{ ... }
And I cant find the way to ask for the current BG color of a Widget. Every
previous reference to that that appears in Google is for modifying it, with
Widget.ModifyBg(), but I dont wanna changed it, just ask for it.
Can anyone help?
Please, I need this ASAP, cause its for my grade thesis.
Thanks,
Slash.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20110413/056cafed/attachment.html
More information about the Gtk-sharp-list
mailing list