I suspect this can only be done by APIs. I saw some RTF stuff concerning C but I cant relate it to VB - here goes:-
I want to use 2 to 5 lines of large Rich text fonts (variable 70 to 130pt)in a fixed size screen window.
Problem is I need 2 option buttons:
1. Automatically vertically center a small message if it doesnt fill the screen.(Insert small blank lines at the top until there is the same blank vertical space above and below the characters)
2. Automatically increase the font size until it just fills the window? (Adjust the selfontsize until bottom of text is just above the bottom of the window)
I can measure horizontal text width but how do I measure where the bottom of the last line of text is in the RTF box?
I want to use 2 to 5 lines of large Rich text fonts (variable 70 to 130pt)in a fixed size screen window.
Problem is I need 2 option buttons:
1. Automatically vertically center a small message if it doesnt fill the screen.(Insert small blank lines at the top until there is the same blank vertical space above and below the characters)
2. Automatically increase the font size until it just fills the window? (Adjust the selfontsize until bottom of text is just above the bottom of the window)
I can measure horizontal text width but how do I measure where the bottom of the last line of text is in the RTF box?