Re: Thx

2006-01-30 Thread Luca Cappa
To do that i would use the "size_allocate" signal, which is called when the parent container tell children the allocation, which is the second phase of "Size Negotiation" (google for it :) ) See you, Luca (Gdk::Rectangle& allocation) Mr. F.Ali wrote: Thx sir your suggestion has solved my prob

Re: Warnings in my code :-Gtk-CRITICAL **: gtk_widget_set_events: assertion `!GTK_WIDGET_REALIZED (widget)' failed

2006-01-30 Thread Luca Cappa
Hello Ali, I think you could only set the events before the widget is realized. Greetings, Luca Mr. F.Ali wrote: i am trying to make a custom control and i am attaching "expose_event" and "button_press_event" on my button in the array of buttons. My Program is Working Properly but i am getting

Re: cursor's color while it is in a entry which has a black background

2005-11-15 Thread Luca Cappa
yeajchao wrote: > Hello all >I have a problem as fllow: > there is a entry ,it's background is black > the problem is that ,when i clicked in the entry , >I can not see the cursor, >it may be because the cursor is also black > >In my opinion ,if I changed the cursor's colo

Re: "motion-notify-event"

2005-09-20 Thread Luca Cappa
gtk_widget_add_events(window,GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK); A few more questions on GtkEvent: There are 2 ways I can get data of mouse position: event->button.x or event->motion.x. Out of these two, which one should be used to capture the location of the mo

Re: Expose events not occurring from gdk_window_invalidate_rect

2005-08-09 Thread Luca Cappa
h GTK+ programming. Trying to get familar with it. Thanks for your help. Douglas Luca Cappa wrote: Hello, Douglas Vechinski wrote: Yes it is idle a lot. Whenever your not moving the mouse or interacting with the GUI it should be sitting in main GTK event loop. On Fri, 2005-08-05 at 17:31

Re: Expose events not occurring from gdk_window_invalidate_rect

2005-08-08 Thread Luca Cappa
Hello, Douglas Vechinski wrote: Yes it is idle a lot. Whenever your not moving the mouse or interacting with the GUI it should be sitting in main GTK event loop. On Fri, 2005-08-05 at 17:31 +0200, Sven Neumann wrote: Hi, Douglas Vechinski <[EMAIL PROTECTED]> writes: The problem

Re: Discarding key pressed events.

2005-06-30 Thread Luca Cappa
Luca Cappa wrote: Hello, in my application I have some key handlers which receive input from the user. When the user press a key, a task has to be executed: this task could require a tiny time slice or a longer one. The problem is that if the user hold pressed a key and the relative task

Discarding key pressed events.

2005-06-21 Thread Luca Cappa
Hello, in my application I have some key handlers which receive input from the user. When the user press a key, a task has to be executed: this task could require a tiny time slice or a longer one. The problem is that if the user hold pressed a key and the relative task takes a lot of time to b

Re: Movinf the mouse pointer

2005-06-14 Thread Luca Cappa
[EMAIL PROTECTED] wrote: On Mon, 13 Jun 2005 14:38:27 +0200, Luca Cappa said: My problem is that I would like to reset the mouse pointer position after each delta movement has been detected: in this way the mouse pointer is always placed in the original position it was when the mouse

Re: Movinf the mouse pointer

2005-06-13 Thread Luca Cappa
Hello, [EMAIL PROTECTED] wrote: hi, i do much the same thing in my application when i am zooming in on seismological waveforms, mouse-down drag-right = zoom in, mouse-down drag-left = zoom out. in order to determine whether or not to zoom in or out, on mouse-down i save the coordinates of the

Movinf the mouse pointer

2005-06-13 Thread Luca Cappa
Hello all, I have implemented a way to rotate the view around a point in my 3D application, by using the mouse pointer: in fact when the left mouse button is hold down and the mouse is moved, the view rotates around. When this process is going on, the mouse is hidden (i.e. its shape is an empt