Block focus change
How can I not let to change focus. I wanna to stay in current widget (GtkEntry) until the good value isn't proper. How can I do it ? Krzysztof Magrel Registered Linux User #157725 Krzysztof Magrel Registered Linux User #157725 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
How don't let to change focus
How can I don't let to change focus. I wanna to stay in current widget (GtkEntry) until the good value isn't proper. How can I do it ? Krzysztof Magrel Registered Linux User #157725 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
How to block alfanumeric entry
I've GtkEntry in my program. I want sometimes allow to entry alfanumeric signs, and sometimes I wanna entry only digits. How could I do it? I know how to try what sign is press (event keypressed and event->keyval its the sign). I thougth, that event->keyval=0 will enough, but not. I still see every signs ;( . What szhould I do ? Krzysztof Magrel Registered Linux User #157725 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: 2 (simple?) questions
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of [EMAIL PROTECTED] > Sent: Tuesday, August 20, 2002 8:09 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: 2 (simple?) questions > > > Krzysztof Magrel wrote: > >>>2. How can I change active widget? Tab key only can change coursor > >>>position > >>>to the next widget. I want to change active widget from > >> > >>source level. (It > >> > >>>depends what user of program will do). I know that it is > >> > >>not possible for > >> > >>>some widgets (ie.labels, etc). > >> > > > > I use gtk-1.2. I tried to find, but niether gtk_widget_grab_focus or > > gtk_widget_activate doesnt work for me :( > > And for 1st question i have no Idea :_( > > Hi, gtk_widget_grab_focus() works for me, what problem were > you having > with it? I've got Segmentation Fault :_( My function to change active widget looks like: void przejdz (char *element, GtkWidget * mw) { // Change active widget to widget with name element GtkWidget *w; if ((w = lookup_widget (mw, element)) == NULL) return; gtk_widget_grab_focus (w); return; } and for example: przejdz("entry3",main_window); make 1 or 2 seconds without reaction (coursor doesn't) change it's position (program freezes) and after this time window closes with Segmentation Fault message. > > There are a bunch of freeze/thaw functions in gtk+-1.2, but > they don't > work very well and have all been removed for gtk2 (I think). gtk2 is > much more sensible about painting the screen and you don't > need this trick. > > John > > > > == > Fabric of Vision > Dress and Drapery in Painting > > 19 June - 8 September 2002 > > For information and tickets: > http://www.nationalgallery.org.uk/exhibitions/fabric/ > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list > > Zgodz sie, co Ci szkodzi... >>> http://link.interia.pl/f163b > > ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
how to change a active widget ?
How can I change active widget? Tab key only can change coursor position to the next widget. I want to change active widget from source level. (It depends what user of program will do). I know that it is not possible for some widgets (ie.labels, etc). Did someone solve this problems? Can really nobody help me ? Thanks Krzysztof Magrel Registered Linux User #157725 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: 2 (simple?) questions
> > I have 2 questions. Perhaps someone knows solutions? > > > 1. Is it possible to freeze display (and do something only > in memory) and > > unfreeze after program do what I want? I want to freeze > main_window and in > > this time I wanna show/hide widgets and add elements for > lists etc. It > > takes > > much more time (and looks not nice) when everytking is visible. > > > 2. How can I change active widget? Tab key only can change coursor > > position > > to the next widget. I want to change active widget from > source level. (It > > depends what user of program will do). I know that it is > not possible for > > some widgets (ie.labels, etc). > > For both of these questions you sould look in > "gtk+-2.0/gtk/gtkwidget.h" in > your include directory. There you should find answers. If you are not > familiar with these files you can also take a look in the > gtk+-2.0-reference manual > at . > I use gtk-1.2. I tried to find, but niether gtk_widget_grab_focus or gtk_widget_activate doesnt work for me :( And for 1st question i have no Idea :_( Could someone help? ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
2 (simple?) questions
Hello everybody! I have 2 questions. Perhaps someone knows solutions? 1. Is it possible to freeze display (and do something only in memory) and unfreeze after program do what I want? I want to freeze main_window and in this time I wanna show/hide widgets and add elements for lists etc. It takes much more time (and looks not nice) when everytking is visible. 2. How can I change active widget? Tab key only can change coursor position to the next widget. I want to change active widget from source level. (It depends what user of program will do). I know that it is not possible for some widgets (ie.labels, etc). Did someone solve this problems? Thanks Krzysztof Magrel Registered Linux User #157725 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: How can I change color of fonts in GTK 1.2
> -Original Message- > From: Krzysztof Magrel [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 31, 2002 7:20 AM > To: 'Jean-Michel OLTRA' > Cc: '[EMAIL PROTECTED]' > Subject: RE: How can I change color of fonts in GTK 1.2 > > > > > > -Original Message- > > From: Jean-Michel OLTRA [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 30, 2002 9:02 PM > > To: Krzysztof Magrel > > Subject: Re: How can I change color of fonts in GTK 1.2 > > > > > > On Tuesday 30 Jul 2002, Krzysztof Magrel wrote: > > > It doesn't work for me :(( > > > > > > Use sth like that ? > > > > > > > > GdkColor blanc = {65535, 65535, 65535}; > > > > GtkWidget *label; > > > > > > > > label->style = gtk_style_copy(label->style); > > > > label->style->fg[GTK_STATE_NORMAL] = blanc; > > > > Aaargh ! > > What do you want to do ? What kind of widget do you want to > change the > I wanna change font's color of normal label (GtkLabel class) > > font color from ? > > > > Did you try to set colors in a rc-file ? > Yes, I already tried and every colors of fonts are now blue > :) (I changed entry fg[NORMAL] to "#ff") > I don't know why Your solution doesn't work for me. > I've it like that: GdkColor color; > > GtkWidget *label; > > color.red=65535; > color.green=0; > color.blue=0; > > label=lookup_widget(main_window,"label8"); > label->style=gtk_style_copy(label->style); > label->style->text[GTK_STATE_NORMAL]=color; I of course tried also change it with: label->style->fg[GTK_STATE_NORMAL]=color; without result > > > > -- > > jean-michel > > > > > -- > > Zacznij dobrze dzien... >>> http://link.interia.pl/f162e > > > > > ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: How can I change color of fonts in GTK 1.2
> -Original Message- > From: Jean-Michel OLTRA [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 30, 2002 9:02 PM > To: Krzysztof Magrel > Subject: Re: How can I change color of fonts in GTK 1.2 > > > On Tuesday 30 Jul 2002, Krzysztof Magrel wrote: > > It doesn't work for me :(( > > > > Use sth like that ? > > > > > > GdkColor blanc = {65535, 65535, 65535}; > > > GtkWidget *label; > > > > > > label->style = gtk_style_copy(label->style); > > > label->style->fg[GTK_STATE_NORMAL] = blanc; > > Aaargh ! > What do you want to do ? What kind of widget do you want to change the I wanna change font's color of normal label (GtkLabel class) > font color from ? > > Did you try to set colors in a rc-file ? Yes, I already tried and every colors of fonts are now blue :) (I changed entry fg[NORMAL] to "#ff") I don't know why Your solution doesn't work for me. I've it like that: GdkColor color; GtkWidget *label; color.red=65535; color.green=0; color.blue=0; label=lookup_widget(main_window,"label8"); label->style=gtk_style_copy(label->style); label->style->text[GTK_STATE_NORMAL]=color; > -- > jean-michel > > -- > Zacznij dobrze dzien... >>> http://link.interia.pl/f162e > > ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
How can I change color of fonts in GTK 1.2
I've problem like in subject. Please help. Krzysztof Magrel Registered Linux User #157725 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Where is glade2
Where can I get glade2? Krzysztof Magrel Registered Linux User #157725 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Maximize project
How can I run my project (in gtk+) on full screen? It means I want to maximize window of project. I can of course maximize it "by heand" after application run. But I want my application do it itself on the start (of course size of the window will depend of resolution (640x480, 800x600, 1024x768 etc.)). How function should I use ? Please help. Krzysztof Magrel Registered Linux User #157725 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GDK Fonts
How can I convert GdkFont * to char * font? char * means XLFDs font. Function gdk_font_full_name_get doesnot exists (it is deprecated also) in my gdk. Thanks for any help Krzysztof Magrel Registered Linux User #157725 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: Fonts
I'm begginer in gtk, but now I know how to do it. Below is function i wrote to change fonts of elements. element is name of element (for example button1), fontname is fontame in format -misc-*-8...*-iso8859-2, mw is widget to window where is element (for example main window). It works to me. I know it's lame, but I don't know another method void ustaw_czcionke(char* element,char *fontname, GtkWidget *mw) { GtkWidget *text; GtkStyle *style; GdkFont *font1; font1=gdk_font_load(fontname); //translate font to GdkFont* text = lookup_widget (mw, element); /* If no font is selected, or the font couldn't be loaded, just return. */ if (!font1) { fprintf(stderr,"Bad font!\n"); return; } /* We copy the current style, and update the font. */ style = gtk_style_copy (text->style); gdk_font_unref (style->font); style->font = font1; gdk_font_ref (font1); gtk_widget_set_style (text, style); } > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Sridhar Chigurupati > Sent: Wednesday, July 10, 2002 12:53 PM > To: [EMAIL PROTECTED] > Subject: Fonts > > > Hello, > > Can anybody please tell me the method for changing fonts and > font size in GTK-1.2. > > Thanks in advance > Sridhar > > > ---R-E-K-L-A-M-A--- > Kolejna wiadomosc czeka na Ciebie pod adresem: > http://www.bizz.pl/list_w_butelce_new/dostarczenie.php?id=1000 > ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
FW: GDK Fonts
> How can I convert GdkFont * to char * font? > char * means XLFDs font. Function gdk_font_full_name_get > doesnot exists (it > is deprecated also) in my gdk. > Thanks for any help > > Krzysztof Magrel > Registered Linux User #157725 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GDK Fonts
How can I convert GdkFont * to char * font? char * means XLFDs font. Function gdk_font_full_name_get doesnot exists (it is deprecated also) in my gdk. Thanks for any help Krzysztof Magrel Registered Linux User #157725 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list