Hi,

I don't think this kind of widget exists as such.
Tracking the cursor position by constantly writing the coordinates in a
Label or such would be (I think) more user-friendly than having a popup
If you want the coordinates to stay the same for a while (eg. for a
copy/paste), you could have a second Label/Entry/etc updated on clicking the
area (just an idea)

Setting up a simple label would be as easy as connecting the mouse motion
signal to a function that would in turn update the text in the Label
If you're using gtkmm, you'll probably be better off subclassing Label by
your own CursorTrackingLabel, which would include that function as a slot

Hope this helps,
Jonathan

On 5/2/07, nahuel9728 <[EMAIL PROTECTED]> wrote:
>
>
> Hi everyone. I don't if is it possible but..
> I would like add text everytime i do a button_press_event on a widget(in
> this case a drawing area), in a text area or what ever that everytime
> clicks
> on it, writes the position of the event mean... a history of the clicks im
> doing of my drawing area.
> Actually i have a pop up window everytime I click on the drawing area but
> its not useful cuz quickly the screen get full of annoying popup windows.
> Another method Im thincking is a time event. I mean, stop the cursor on
> x,y
> of the screen.for maybe 2 seconds and this pops up a window telling the
> x,y
> information and when you move(change the cursor position) dissapears the
> the
> popup window. Exist any widget like this???? I was looking and in gtk+ it
> seems like doesnt exits.
> Anyone has done something like this???
> Every tip it would be great.
> Thank you very much.
> Nahuel
> --
> View this message in context:
> http://www.nabble.com/Adding-Text-to-a-widget-from-a-button_press_event-Or-Pop-Up-window-from-a-time-event.-tf3683031.html#a10294112
> Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>



-- 
<Morpheus> linux, c'est une question de VI ou de MORE
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to