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

Re: Vertical text in buttons, etc.




 From the image on the URL, those are all "Tabbed Panes", I think that if can
select a vertical layout for the gtknotebook, it will automatically do that. No
?

Harring.

--- Owen Taylor <otaylor@redhat.com> wrote:
> On Wed, 2003-02-05 at 01:42, Biswapesh Chattopadhyay wrote:
> > Hi 
> > 
> > I need a widget with vertical tabs/buttons with text, as in JEdit. You
> > can get an idea from the left part of the image here: 
> > 
> > http://sourcebase.sourceforge.net/vertical-text.png
> > 
> > How do I do this in GTK+ ?
> 
> Basically, you can't currently.
> 
> A possible workaround:
> 
>  - Draw the text to a pixmap (using gdk_draw_pango_layout())
>  - Retrieve that back into a GdkPixbuf (gdk_pixbuf_from_drawable())
>  - Put the GdkPixbuf into the button (Add a GtkImage to an 
>    empty GtkButton)
> 
> Regards,
>                                        Owen
> 
> 
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



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