What should I use to get or show hex numbers.
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
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
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
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
How is it possible to make a (text) box to get or show a hexadesimal
number?
--
Tom Frysland
[EMAIL PROTECTED]
INFN
Universita Roma II
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
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