Re: Gtk::Entry justification
- From: Jonathan Irwin <jmi25 cam ac uk>
- To: Jeff Hornsberger <jhornsbe csc uvic ca>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Gtk::Entry justification
- Date: Mon, 30 Jul 2001 19:43:35 +0100
Jeff Hornsberger wrote:
Ok, thanks. That sounds good and I don't even need the Gtk::EventBox
because it's just the display for a calculator - you can't edit the display
directly. The reason I was using the Gtk::Entry was so that the background
would be a different colour and the display would be easy to read. Is there
any way to set the background and foreground colour in a Gtk::Label? What
about perhaps setting the text in there to be bold or some other font? What
widget can I use to get all or some of these features? Thanks. -Jeff
The trick I usually use is to put the GtkLabel into a GtkFrame with no
label (use NULL) and call gtk_frame_set_shadow_type() to set the
shadow to GTK_SHADOW_IN. This should give a reasonable result,
although if you want a white background you'll need to mess with
GtkStyle or GtkRcStyle.
Hope this helps
Jonathan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]