[gtkmm] Entry widget width



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Trying to set up an entry widget for a 32 bin hex number, so I want the
widget to display at a fixed width and only allow so man characters to
be entered.

This is the code I got to work:
~  modify_font(Pango::FontDescription("fixed"));
~  set_max_length (18);
~  set_width_chars (13);

Why do I need to set the width to 13 to get it to match the max length
of 18 (16 hex characters, plus '0x')?
- --
*************************************************
*   Greg Rogers		Cray Inc.		*
*   grogers cray com	(715)726-4631		*
*************************************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/Zcp3s3ZHWtAE+l4RArqVAJsGi4drkqYbasj7KcgFrrXaP5jNsgCfcFSP
l8nlw2NRy8tR5jub9Ras9IM=
=9f6v
-----END PGP SIGNATURE-----




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