2 (simple?) questions

2002-08-19 Thread Krzysztof Magrel

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: 2 (simple?) questions

2002-08-19 Thread Simon Fuhrmann

Hi!

 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 www.gtk.org.

Regards,

-- 
Simon Fuhrmann | [EMAIL PROTECTED] | www.dismember.de

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



RE: 2 (simple?) questions

2002-08-19 Thread Krzysztof Magrel



  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 www.gtk.org.

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



Re: GtkComboBox: How to be notified of selection

2002-08-19 Thread Lars Clausen

On 02 Aug 2002, Lars Clausen wrote:
 
 I'm using a GtkComboBox in Dia for zoom selection.  I can't quite get it
 to behave the way I'd like.  It ought to be that when the user selects an
 item from the drop-down list (making the drop-down disappear), the zoom
 amount should be updated.  However, I haven't found a signal that will
 tell me that the user made his or her final selection.  select-child
 and selection-changed from the GtkList is called while the mouse is
 dragged over the items.  unmap, hide and unrealize don't get
 called.  I don't want the user to have to press Enter after selecting
 from the menu, that's all.  What should I do?

In the end, I dropped the ComboBox and changed to combined Entry and Button
with menu-popup.  Works just the way the ComboBox should have.

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
I do not agree with a word that you say, but I   |
will defend to the death your right to say it.   | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Menu Item drawing an accelerator

2002-08-19 Thread Allen Brown

Hi,
I would like to add accelerator text to my menu items,
without actually using a real accelerator i.e I
would like to have: Cut Ctl-X in the menu, but
do not want to define an accelerator.
For the moment I am setting the menu Item text
to Cut___Ctl-X, where ___ is 3 space characters.
This does what I want, but looks rather ugly as
the Ctl-X is not right justified. I tried looking
through the GTK source to see how it is done,
but after a few hours I gave up. I am pretty new to
 GTK, and would appreciate it ifanyone could give
me some advice on how to do this.
Thanks
Allen.


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Menu Item drawing an accelerator

2002-08-19 Thread Lars Clausen

On Mon, 19 Aug 2002, Allen Brown wrote:
 Hi,
 I would like to add accelerator text to my menu items,
 without actually using a real accelerator i.e I
 would like to have: Cut Ctl-X in the menu, but
 do not want to define an accelerator.

Why would you want to do that?  Something wrong with accelerators?

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
I do not agree with a word that you say, but I   |
will defend to the death your right to say it.   | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Menu Item drawing an accelerator

2002-08-19 Thread Mathias Hartwig

Hallo Allen!

 I would like to add accelerator text to my menu items,
 without actually using a real accelerator i.e I
 would like to have: Cut Ctl-X in the menu, but
 do not want to define an accelerator.

What about setting up 2 widgets in the item?

Maybe that is not a very smart solution, but
I would try to get the label of the item button widget
to put an hbox upon it instead of the single label),
using reparent if this is still in gtk2.

In that box I would put 2 labels. One that contains
the title and the other one containing the accelerator?
I think if the accelerator strings lengths are of the
same length if would look the way you want it.
That way you could add nice xpms (like these stock
items) also.

Greetings

-- 
Mathias Nudge Hartwig
http://www.trans-japan.de/mathias

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Menu Item drawing an accelerator

2002-08-19 Thread Allen Brown



--- Lars Clausen [EMAIL PROTECTED] wrote:
 On Mon, 19 Aug 2002, Allen Brown wrote:
  Hi,
  I would like to add accelerator text to my menu
 items,
  without actually using a real accelerator i.e I
  would like to have: Cut Ctl-X in the menu,
 but
  do not want to define an accelerator.
 
 Why would you want to do that?  Something wrong with
 accelerators?
 
 -Lars
 

Nothing wrong with accelerators, but I am porting
existing software, that already intercepts all
keystrokes and executes commands from a user
defined table. I could use accelerators but I would
like to keep my code base as similar as possible
across all platforms. I also want to satisfy my
curiosity!
Allen

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Menu Item drawing an accelerator

2002-08-19 Thread Lars Clausen

On Mon, 19 Aug 2002, Allen Brown wrote:
 
 
 --- Lars Clausen [EMAIL PROTECTED] wrote:
 On Mon, 19 Aug 2002, Allen Brown wrote:
  Hi,
  I would like to add accelerator text to my menu
 items,
  without actually using a real accelerator i.e I
  would like to have: Cut Ctl-X in the menu,
 but
  do not want to define an accelerator.
 
 Why would you want to do that?  Something wrong with
 accelerators?
 
 -Lars
 
 
 Nothing wrong with accelerators, but I am porting
 existing software, that already intercepts all
 keystrokes and executes commands from a user
 defined table. I could use accelerators but I would
 like to keep my code base as similar as possible
 across all platforms. 

Well, if you already intercept all keystrokes and execute the appropriate
functions, then accelerators added the normal way would never get executed
anyway, right?  And if not, then they execute the same command as the menu
items anyway, which presumably is the same as the keystroke would do?

 I also want to satisfy my curiosity!

That's a reasonable reason:)

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
I do not agree with a word that you say, but I   |
will defend to the death your right to say it.   | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list