N
Neil Kiser
I am trying to locate either a sample routine for or to at least
acquire the knowledge of how to determine how large of a window to
create to hold a text string. From my search so far, it would seem
that this is a common request, but I have yet to come across an
example solution.
I have a situation in which I need to size a window accurately, or
either I have to guess what the largest the window could ever be and
set it to a flat number. Really don't want to do this, therefore I'm
in search of a way to determine, given a string, a font, and a window
width, how high the window would need to be to hold the string.
Thank you for any pointers,
-Neil K.
acquire the knowledge of how to determine how large of a window to
create to hold a text string. From my search so far, it would seem
that this is a common request, but I have yet to come across an
example solution.
I have a situation in which I need to size a window accurately, or
either I have to guess what the largest the window could ever be and
set it to a flat number. Really don't want to do this, therefore I'm
in search of a way to determine, given a string, a font, and a window
width, how high the window would need to be to hold the string.
Thank you for any pointers,
-Neil K.