Re: Drawing a line in the GtkTable cell



You can make a 10 pixel wide, 2 pixel high black PNG, load that into a
GtkImage, then put the GtkImage into the cell.

http://library.gnome.org/devel/gtk/stable/GtkImage.html

It'd be nice if you could stretch the gtkimage to the exact width you
need, but I don't think that's easy, unfortunately.

On 25 March 2011 04:15,  <ikorot earthlink net> wrote:
> Hi, ALL,
> What I'm looking for is this:
>
> 3
> -
> 4
>
> where 3 and 4 are located in their own GtkTable cell as GtkLabel and the
> division line will be in it's own
> GtkTable cell.
>
> Is there an easy way to do that?
>
> -----Original Message-----
> From: ikorot earthlink net
> Sent: Mar 23, 2011 5:38 PM
> To: Ian Liu Rodrigues
> Subject: Re: Drawing a line in the GtkTable cell
>
> Hi, Ian,
> I just tried the suggestion. It's not exactly what I want. I will need to
> talk to my customer about that.
> Originally the screen was designed so that there should be the thick black
> line between 2 numbers.
>
> It would've been look like this:
>
> 3
> -
> 4
>
> Do you know how to make something like this?
>
> Thank you.
>
> -----Original Message-----
> From: Ian Liu Rodrigues
> Sent: Mar 22, 2011 5:34 PM
> To: ikorot earthlink net
> Subject: Re: Drawing a line in the GtkTable cell
>
> Pack one of GtkHSeparator or GtkVSeparator ;-)
> Ian L.
>
> On Tue, Mar 22, 2011 at 7:52 PM, <ikorot earthlink net> wrote:
>>
>> Hi,
>> I need your expertise one more time.
>>
>> I need to draw a line in the cell of GtkTable.
>> What is the best and quickest way to achieve it?
>>
>> Thank you.
>> _______________________________________________
>> gtk-list mailing list
>> gtk-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]