Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Nov. 7, 2005 23:00:13

Andrew S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

draging two windows


I have two top level windows and I want them to maintain the same
spatial relationship.

How can I (can I?) use the begin_drag_move() method to sync up the
movement of the two windows?

One top level window is a data member of the other (using gtkmm)
pane_ is the data member

This is what I tried as a first attempt.
. . .

begin_move_drag((event->button,
(event->x_root),
(event->y_root),
event->time);
get_position(x,y);
pane_.move(x,y+pane_offset_y_);

The result is the x,y get set only once when the drag starts and you
drag the first window around and pane_ snaps to it when you start a
second drag.

Anyone do this before? Is there a signal or event I can use to move
pane_ in sync?

Thanks,

Andrew Shafer
Application Developer
Realm Systems Inc.
www.realmsys.com




_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

Board footer

Moderator control

Enjoy the 20th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support