Rejection is nothing new to me |-(...
- From: Shane Lenagh <sml13 cornell edu>
- To: gtk-list redhat com, gtk-app-devel redhat com
- Subject: Rejection is nothing new to me |-(...
- Date: Mon, 16 Nov 1998 14:29:17 -0600
...but I would reallly appreciate it if someone out there who _might_
have some insight on the two questions I posted earlier (quoted below
for your convenience) might give me some hints on how to do these
things. You don't even have to have a definitive answer; wild guesses
and shots in the dark are welcome as well.
Also for your convenience, I have attached a tarball containing the full
source (believe it or not, it does compile :-) of what I have so far, as
well as a screenshot (win95cdplayer.jpg) of my win95 desktop showing
what it is I'm trying to clone (this is especially helpful for seeing
what I mean by having label accelerators associated with the actual
widgets that they are labels for...as this is where I got the idea
from).
Obviously, this is just a front end for it. I have NO IDEA how I would
actually hook this up to interact with the device to make a working
player. This is just mainly to help myself learn this cool little
widget set.
I know the wonderful RHAD folks are busy hacking away, so I don't want
to bother any of them. But any of you other guys/gals out there that
have been developing apps and run into the same problems could maybe
give me a quick note on how you solved them.
Thanks in advance,
shane
P.S. As you can tell by reading my code, I am probably a better writer
of English prose than I am of C code; so if I can start to figure these
things out (with a little help) I would be more than happy to help beef
up the (somewhat sparse, IMHO) documentation that exists on gtk.org
> Subject:
> [gtk-list] Setting Entry Fonts and BG's
> Resent-Date:
> 15 Nov 1998 16:17:01 -0000
> Resent-From:
> gtk-list@redhat.com
> Resent-CC:
> recipient list not shown: ;
> Date:
> Sun, 15 Nov 1998 11:16:59 -0500 (EST)
> From:
> sml13@cornell.edu (Shane Michael Lenagh)
> Reply-To:
> gtk-list@redhat.com
> To:
> gtk-list@redhat.com
>
>
>
>
> Hi,
>
> I'm writing a little CD player "capplet" in GTK+ (just to help me learn the
> API...as I know several good ones already exist). What I want to do is
> have a GtkTextEntry that displays the track number and song length that
> has a black background (as opposed to the default white), with alien
> green numbers (as opposed to the default black) in a really big font
> (which I may make user definable...just for the hell of it :-). I
> thought that the way to do this would be with the GtkStyle widget, like:
>
> GtkWidget *time;
> GtkStyle *style;
> .
> .
> .
> time = gtk_entry_new ();
> style = gtk_style_new ();
> style->font = gdk_font_load ("-adobe-helvetica-bold-r-normal-*-*-240-*-*-p-*-iso8859-1");
> style->text[GTK_STATE_NORMAL].red = 0;
> style->text[GTK_STATE_NORMAL].green = 255;
> style->text[GTK_STATE_NORMAL].blue = 0;
> style->bg[GTK_STATE_NORMAL] = style->black;
> gtk_widget_set_style (time, style);
> gtk_entry_set_text (GTK_ENTRY (time), "[0] 00:00.00");
> gtk_entry_set_editable (GTK_ENTRY (time), FALSE);
> .
> .
> .
>
> The only thing this seems to work for, though, is the font. That gets
> set the way I want it. But the background is still white (the area right
> around the text, that is; although it looks like the bg of the _widget_
> has a mysterious black border. But that's not what I was trying to do.)
> Also, the text color is still black. Am I going about this the wrong
> way? Is gtk_widget_set_style not the method to use for setting things
> like font, bg, and text color in widgets?
>
> Any help would be greatly appreciated.
>
> Gtk Newbie,
> shane
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
************************
> Subject:
> [gtk-list] Accelerator Feature request (maybe?)
> Resent-Date:
> 15 Nov 1998 23:10:35 -0000
> Resent-From:
> gtk-list@redhat.com
> Resent-CC:
> recipient list not shown: ;
> Date:
> Sun, 15 Nov 1998 18:10:30 -0500 (EST)
> From:
> sml13@cornell.edu (Shane Michael Lenagh)
> Reply-To:
> gtk-list@redhat.com
> To:
> gtk-list@redhat.com
>
>
>
>
> Hello again,
>
> I don't know if this functionality already exists in GTK+ 1.1 and I just
> can't find it. If it doesn't, it might be something to consider for
> future releases (1.2?). What I want to do specifically is attach an accelerator
> key to a widget BUT have the accelerator underscore (you know how _F_ile
> is underscored on the menu's of M$ apps) actually appear on a label right
> next to the widget. I am trying to have a combo box in a CD player app
> with a label next to it that says "Artist". I want the letter "A" of
> "Artist" to be underscored, but I want the actual accelerator to be
> attached to the combo box next to it, as I believe you can do in Win32.
>
> My motivation for doing this is that I want to make a clone of the Win95
> CD Player which is laid out just like this. I think it would be really
> neat if you could attach accelerators like this.
>
> Also, if anyone has any insights on the question I had earlier about
> setting the font and background of GtkEntries (or any widget, for that
> matter), I would greatly appreciate your advice there too.
>
> Gtk Newbie,
> shane
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]