G
Guest
I have about 20 MsgBox occurance in by program, which I use to inform the
user of the progress of the program, or ask confirmation of an action, or
simply to act separators to various parts of the program.
They all vary in size and shape depending on the text length.
To make the looks of the program more consistant, I made the FIRST and LAST
line a series of "======" 65 characters long.
Windows displays Message Box text using a font defined by the user's
"Appearance" settings, and most users probably have the default Tacoma 8pt
or some other proportional space font installed.
l loaded the text into Word and centered each line of text to the length of
the top and bottom lines by padding each line with leading blank spaces.
I then pasted each line, including the spaces, between the quotes framing my
text in the MsgBox code.
Now all msgboxes displayed the same width, and each line of text is
centered and looks great! .
One of my beta testers had set his display to use "Large Fonts" and both
of the ===== lines wrapped onto the next line as did the longest line
of text.
Is there any way to format the text in a MsgBox so that it uses a font and
font size of my choosing, instead of the user's system preferences.
Alternately, is there any way to know the maximum size line that will not be
wrapped in any screen resolution and font size.
........joisey
user of the progress of the program, or ask confirmation of an action, or
simply to act separators to various parts of the program.
They all vary in size and shape depending on the text length.
To make the looks of the program more consistant, I made the FIRST and LAST
line a series of "======" 65 characters long.
Windows displays Message Box text using a font defined by the user's
"Appearance" settings, and most users probably have the default Tacoma 8pt
or some other proportional space font installed.
l loaded the text into Word and centered each line of text to the length of
the top and bottom lines by padding each line with leading blank spaces.
I then pasted each line, including the spaces, between the quotes framing my
text in the MsgBox code.
Now all msgboxes displayed the same width, and each line of text is
centered and looks great! .
One of my beta testers had set his display to use "Large Fonts" and both
of the ===== lines wrapped onto the next line as did the longest line
of text.
Is there any way to format the text in a MsgBox so that it uses a font and
font size of my choosing, instead of the user's system preferences.
Alternately, is there any way to know the maximum size line that will not be
wrapped in any screen resolution and font size.
........joisey