T
True.Kilted.Scot
Folks,
I have a window in my database which contains 5 labels. These labels
are used for displaying altering text, with a font of Tahoma and a Font
Size of 10.77
For example...the first label might display "Starting........."
initially, and then this may change to "Running...". Once the
"Running..." process has completed, the text may change to "Stage One
Done...", with the second label changing to "Starting........." and so
on.
My question is this:
If each label has the same dimensions, namely:
Width = 7cm
Height = 0.5cm
and any label can display BOLD text as well as NORMAL, is there any way
I can calculate the number of characters that will be displayed within
the 7cm width of the label. For example, the text "The quick brown fox
jumped over the lazy dog" is too big for the box, just cutting of a
portion of the "g". If I change the text to BOLD, it now cuts off
everything after the "z" of lazy.
So, using the font name, the font size and the width of the label, can
I caluclate a rough approximation of the number of characters that can
be displayed in it?
Rgds
Duncs
I have a window in my database which contains 5 labels. These labels
are used for displaying altering text, with a font of Tahoma and a Font
Size of 10.77
For example...the first label might display "Starting........."
initially, and then this may change to "Running...". Once the
"Running..." process has completed, the text may change to "Stage One
Done...", with the second label changing to "Starting........." and so
on.
My question is this:
If each label has the same dimensions, namely:
Width = 7cm
Height = 0.5cm
and any label can display BOLD text as well as NORMAL, is there any way
I can calculate the number of characters that will be displayed within
the 7cm width of the label. For example, the text "The quick brown fox
jumped over the lazy dog" is too big for the box, just cutting of a
portion of the "g". If I change the text to BOLD, it now cuts off
everything after the "z" of lazy.
So, using the font name, the font size and the width of the label, can
I caluclate a rough approximation of the number of characters that can
be displayed in it?
Rgds
Duncs