Re: GTK+ PopUp Window make it Transparent...

2006-08-21 Thread Wolfman
#define _WIN32_WINNT 0x0500 #define WINVER 0x0500 #include #include #include #include int main(int argc, char **argv) { gtk_init(&argc, &argv); GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(window), "Splitting Test");

Re: Event Box doesnt work on "key_press_event"

2006-08-21 Thread Wolfman
You must grab the focus at best on mouse over. Madhusudan E wrote: > > Hi all, > > > > I am trying attach "key_press_event" to event_box, which contains a label. > > But it is not catching the key_press_event. > > Can someone suggest how to go abt this. > > > > > > > > Madhusudan

Re: GTK+ PopUp Window make it Transparent...

2006-08-21 Thread Wolfman
Juhu got Alpha working :) static gboolean expose(GtkWidget *widget, GdkEventExpose *event, gpointer userdata) { cairo_t *cr = gdk_cairo_create(widget->window); HWND hwnd = (HWND)gdk_win32_drawable_get_handle (widget->window); SetWindowLong(hwnd, GWL_EXSTYLE,

Re: GTK+ PopUp Window make it Transparent...

2006-08-21 Thread Wolfman
Lillqvist wrote: > > Wolfman writes: > > Is there a other way to make a window transparent? And why this > > doesnt work under WinXP? > > Windows with alpha aren't implemented in gdk/win32. Patches > welcome. Look for "

GTK+ PopUp Window make it Transparent...

2006-08-21 Thread Wolfman
I use WinXP with GTK+ 2.8.18 This dont work the colormap is always null... GdkScreen *screen = gtk_widget_get_screen(widget); GdkColormap *colormap = gdk_screen_get_rgba_colormap(screen); Is there a other way to make a window transparent? And why this doesnt work under WinXP?I know in *NIX u ne

Re: GTK+ Draw a Rectangle over other widgets?

2006-08-20 Thread Wolfman
@Stefan Can u tell me how to call the expose in simple example? @Matt Do u mean something like an overlay window? That could also do this job but is there a way to make a popup window transparent? -- View this message in context: http://www.nabble.com/GTK%2B-Draw-a-Rectangle-over-other-widgets

GTK+ Draw a Rectangle over other widgets?

2006-08-20 Thread Wolfman
Does someone know how can draw a simple rectangle over other widgets or a complete window? Cause iam trying to write a window splitting system but i dont know how to draw this rectangle...:( best regards.. -- View this message in context: http://www.nabble.com/GTK%2B-Draw-a-Rectangle-over-othe