[Gtk-sharp-list] Background Coloring: Tables, HBoxes, VBoxes

Victor Rafael Rivarola Soerensen (FANATICO y LOCO por Cristo) vrrivaro at gmail.com
Tue Mar 21 11:31:35 EST 2006


2006/3/21, Graham Oneale <graham at resonline.com.au>:
>
>
>
> Is it possible to set a background color on any of these widgets?
>

Don't know about this.

>
>
> I have an application in which certain container objects will require a
> background color and foreground color.
>
> We have attempted a few methods such as vbox.ModifyBg() with no alas - the
> call appears to be simply ignored?
>
> Could anybody shed some light on how they achieve such an effect.
>
>
>
> Graham
>
>
>
>
> Also, if anybody could help me out with this, I am still requiring a
> solution.  Sorry Dominik, Glade did not help me and I am creating the UI
> from code.
>
> 17/03/2006
>
> Hi Guys,
>
>
>
> I am new to the GtkSharp mailing list.  I have been searching for a
property
> on the Table Widget that will allow me to turn on a border for debugging
> purposes.  This would make it a lot easier to see where I am going wrong
> when attaching widgets to tables.
>
>
>
> Thanks very much,
>
> Graham
>
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>

I really don't think that this is right either, but should be a valid
workaround. You could make it automated in a class or method.

Supose you have a 2 by 2 table:

(0,0)------------+-------------+
  |              |             |
  +------------(1,1)-----------+
  |              |             |
  +--------------+-----------(2,2)

My solution would be to draw the lines *manually* between the points:
(0,0)-(2,0), (0,1)-(2,1), (2,0)-(2,2), (0,0)-(0,2), (1,0)-(1,2), and
(2,0)-(2,2).

Sounds like a lot of work. Thanks God, it can be all automated by a few for
loops and the proper choice of bounds (you can get them from the table
size).

Please note that I have never implemented this.

Jesus bless you,

Víctor Rafael Rivarola

--
FANÁTICO
"Por cuanto eres tibio, y no frío ni caliente, te vomitaré de mi boca."
Apocalipsis 3:16

LOCO
"Porque la Palabra de la Cruz es locura para los que se pierden; pero a
los que se salvan, esto es, a nosotros, es poder de Dios."
1 Corintios 1:18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20060321/b1a8cd7b/attachment.html


More information about the Gtk-sharp-list mailing list