Re: Theme not affecting titlebar on windows xp... help needed



Hi
To do Resize ,First Make Border of Window .... lets say
north,north-west,north-east,east,east-south,south,south-west  ..
 add events to each widegts and connect to callback functions which do
resizing ..

********************************************************
g_signal_connect(G_OBJECT(event_north_east]),"button-press-event",G_CALLBACK(Resize_Window_North_East),(gpointer)window)
********************************************************
******************************
bool
Resize_Window_North_East(GtkWidget *widget,GdkEventButton *event,gpointer
data)
 {
 
gtk_window_begin_resize_drag(GTK_WINDOW(data),GDK_WINDOW_EDGE_NORTH_EAST,event->button,event->x_root,event->y_root,event->time);
  return false;
 }
***********************************


Cheers !
Amitesh Singh  (AMI)
Final Year,
B.Tech.
 ISM Dhanbad
India

On 3/18/06, Michael L Torrie <torriem chem byu edu> wrote:

On Sat, 2006-03-18 at 00:38 +0100, Gus Koppel wrote:
However, then you would have to manage all tasks the window manager
takes care of by yourself, i.e. minimizing and maximizing the window on
request and providing correct drag behaviour. For resizability of your
windows you would still have to rely on the real window manager, since
the resizing borders don't (and can't) belong to the interior of a
window.

To do resize, you can just detect a mouse drag that starts in, say the
lower right-hand corner, and then give the real window manager hints to
resize the window.  This would work on linux and windows.  This is how
xmms does it (gtk1 app, though).  So you could simulate all aspects of
the real window manager from within a decoration-less window as you have
mentioned, but it would be a lot of work and the usability  would be
questionable.

Michael


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]