Hex numbers

2004-02-25 Thread Tom Froysland
What should I use to get or show hex numbers. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Hex numbers

2004-02-25 Thread Egon Andersen
Tom Froysland wrote: What should I use to get or show hex numbers. How about GtkEntry() combined with gtk_entry_set/get_text(), sprintf() and strtoi() sprintf() could also be g_strdup_printf() Best regards Egon Andersen ___ gtk-list mailing list

Re: Hex numbers

2004-02-25 Thread Roger Leigh
Tom Froysland [EMAIL PROTECTED] writes: What should I use to get or show hex numbers. printf(3) and scanf(3) might be what you need. Or use the g_printf, g_strdup_printf and related functions from GLib. What exactly do you want to accomplish? -- Roger Leigh Printing on GNU

Re: Hex numbers

2004-02-25 Thread Paul Davis
some ideas from the world of C++. This is a C++ widget that filters input at the keypress level and only allows hex digits to be entered. i believe i've used it :) --p /* Copyright (C) 1999 Paul Barton-Davis This program is free software; you can redistribute it and/or modify it

Hex numbers

2004-02-25 Thread Tom Froysland
How is it possible to make a (text) box to get or show a hexadesimal number? -- Tom Frysland [EMAIL PROTECTED] INFN Universita Roma II

Re: Hex Numbers in GtkEntry.

2004-02-25 Thread Muthiah Annamalai
Hello Friends, Quoting Tom Froysland [EMAIL PROTECTED] Subject: Hex numbers How is it possible to make a (text) box to get or show a hexadesimal number? -- The way I do it is to use sscanf sprintf and get/set the hexadecimal numbers that we get respectively. //getting an hexdecimal from

Re: Hex Numbers in GtkEntry.

2004-02-25 Thread Billy O'Connor
Muthiah Annamalai [EMAIL PROTECTED] writes: sprintf(data,%X,hex_value); //Assume hex_value has been set somehow. ^ Oops. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list