reading a serial port, putting it in a EntryBox
Hello everybody Iḿ trying to learn somethng about perl::GTK and I wrote some tiny code to do it. At this moment, I'm want to do an application capable to read permanently from /dev/ttyS0 and the output put into an entry box I'm using glade to draw the interface and (obviously) perl My temperature device is a temprax; this device send me the temperature readed from a probe trought a serial port in ascii format I can read from /dev/ttyS0 but I dont know how can I read continously from it and put the result in a entry Box T.I.A Tomás Wolfhack Vega Linux user #79917 at http://counter.li.org wolfh...@yahoo.com --- Free software is necessary for sustainable development. If everyone in your country uses a program that's secret and controlled by a single company, that's not development, that's electronic colonization. RMS. 16 July 2003 ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Draw on a GtkFixed Widget with Cario and place some widgets inside?
Hi out there :) i have few questions i have to write a new tool for my work its something like a node based node editor so the nodes must be connect via splines and as content the node must have a tree view for the properties. So my first thought was to use GtkFixed get the drawable and draw something with cario on it and then place some treeviews widgets inside so do guys think it is possible? Concrete: 1) Can i draw on a GtkFixed with cario 2) Can i control the draw order from treeviews that the will draw after cario on the widget. I mean can i handle this with the realize signal and propagate it manual to the childs? without perm flushing? -- View this message in context: http://www.nabble.com/Draw-on-a-GtkFixed-Widget-with-Cario-and-place-some-widgets-inside--tp14421717p14421717.html Sent from the Gtk+ - Dev - General mailing list archive at Nabble.com. ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Draw on a GtkFixed Widget with Cario and place some widgets inside?
jcupitt wrote: Have you looked at GooCanvas? ... I took a quick looks nice i could give try but that doesnt answer my question :) Cause if the things i mentioned above are possible i could make something smaller and leaner. -- View this message in context: http://www.nabble.com/Draw-on-a-GtkFixed-Widget-with-Cario-and-place-some-widgets-inside--tp14421717p14424216.html Sent from the Gtk+ - Dev - General mailing list archive at Nabble.com. ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
GTK+ PopUp Window make it Transparent...
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 need a composite manager do i need this under winxp? -- View this message in context: http://www.nabble.com/GTK%2B-PopUp-Window-make-it-Transparent...-tf2139080.html#a5903314 Sent from the Gtk+ - Apps Dev forum 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
Re: GTK+ PopUp Window make it Transparent...
Good to know :) 1.Do u know how to get the HWND(is there a way to get the HWND from HGDIOBJ?) Its looks quit easy under win32: // Set WS_EX_LAYERED on this window SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED); // Make this window 70% alpha SetLayeredWindowAttributes(hwnd, 0, (255 * 70) / 100, LWA_ALPHA); The problem is how to get this mechanism to GTK+ or better to cairo? Target function: cairo_set_source_rgba Is it possible to get the hwnd from cairo_t struct? Any advise will be helpfull cause i dont know where to start. regards. Tor 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 layered windows in MSDN. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- View this message in context: http://www.nabble.com/GTK%2B-PopUp-Window-make-it-Transparent...-tf2139080.html#a5903858 Sent from the Gtk+ - Apps Dev forum 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
Re: GTK+ PopUp Window make it Transparent...
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, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED); SetLayeredWindowAttributes(hwnd, 0, (255 * 70) / 100, LWA_ALPHA); Have u an ICQ UIN? -- View this message in context: http://www.nabble.com/GTK%2B-PopUp-Window-make-it-Transparent...-tf2139080.html#a5904163 Sent from the Gtk+ - Apps Dev forum 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
Re: Event Box doesnt work on key_press_event
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 E, HTIPL, Bangalore-08 - 9980527224 www.huawei.com This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- View this message in context: http://www.nabble.com/Event-Box-doesnt-work-on-%22key_press_event%22-tf2139522.html#a5904536 Sent from the Gtk+ - Apps Dev forum 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
Re: GTK+ PopUp Window make it Transparent...
#define _WIN32_WINNT 0x0500 #define WINVER 0x0500 #include gtk/gtk.h #include gdk/gdk.h #include gdk/gdkwin32.h #include cairo.h 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); g_signal_connect(G_OBJECT(window), delete-event, gtk_main_quit, NULL); gtk_widget_show_all(window); // Alpha Blending //HWND hwnd = (HWND)gdk_win32_drawable_get_handle (window-window); //SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED); //SetLayeredWindowAttributes(hwnd, 0, (255 * 60) / 100, LWA_ALPHA); // Color Keying //HWND hwnd = (HWND)gdk_win32_drawable_get_handle (window-window); //SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED); //SetLayeredWindowAttributes(hwnd, RGB(255,255,255), 0, LWA_COLORKEY); gtk_main(); return 0; } Do u think that we can patch this small hack into GTK cause is very usefull for GTK+Win32 user :) I will look at irc now :) -- View this message in context: http://www.nabble.com/GTK%2B-PopUp-Window-make-it-Transparent...-tf2139080.html#a5904712 Sent from the Gtk+ - Apps Dev forum 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
GTK+ Draw a Rectangle over other widgets?
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-other-widgets--tf2132346.html#a5884946 Sent from the Gtk+ - Apps Dev forum 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
Re: GTK+ Draw a Rectangle over other widgets?
@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--tf2132346.html#a5898841 Sent from the Gtk+ - Apps Dev forum 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