Is there a way to center a Text (GDI+) source when the content comes from a local txt file?
I want to put some text on my screen, have it centered, and have it STAY centered when the text being displayed changes. All I can find at the moment is to center the source box, but the left part of the box stays anchored. I want the center of the box to stay anchored.
See attached files for a visual. I centered the text box with the Beatles song playing. When the Stones song comes on (and the content of the text file I'm using changes), the box stays anchored at the left edge which means the text is still centered within the box, but it isn't centered on the screen.
My only possible workaround so far is to pad the text with spaces so that each line always has the same number of characters. But that workaround will only work with monospaced fonts. I'd really like to use a proportional font.
Any help, anyone?
"Gil"
I want to put some text on my screen, have it centered, and have it STAY centered when the text being displayed changes. All I can find at the moment is to center the source box, but the left part of the box stays anchored. I want the center of the box to stay anchored.
See attached files for a visual. I centered the text box with the Beatles song playing. When the Stones song comes on (and the content of the text file I'm using changes), the box stays anchored at the left edge which means the text is still centered within the box, but it isn't centered on the screen.
My only possible workaround so far is to pad the text with spaces so that each line always has the same number of characters. But that workaround will only work with monospaced fonts. I'd really like to use a proportional font.
Any help, anyone?
"Gil"