How to define a visual scheme for a GUI *including* text?
-
Hello, I'm developing a GUI with Windows Forms and would like to be able to change the 'look and feel' of the whole GUI from one place - essentially apply a Visual Style to it. But I want to be able to change the size and font of all the text in the app when I do so: including both Labels and the text displayed in buttons, listboxes etc. I realise that Labels (and a couple of other components) ignore Visual Styles. Is there a way I can force them to obey a visual style, or some other way to define and apply a consistent visual scheme to the GUI, including the text? (I'm working in C# .NET 2.0) Thanks very much, Keiron
-
Hello, I'm developing a GUI with Windows Forms and would like to be able to change the 'look and feel' of the whole GUI from one place - essentially apply a Visual Style to it. But I want to be able to change the size and font of all the text in the app when I do so: including both Labels and the text displayed in buttons, listboxes etc. I realise that Labels (and a couple of other components) ignore Visual Styles. Is there a way I can force them to obey a visual style, or some other way to define and apply a consistent visual scheme to the GUI, including the text? (I'm working in C# .NET 2.0) Thanks very much, Keiron
Upgrade to WPF and .NET 3. Seriously, this is relatively trivial in WPF (there are a couple of little gotchas). Failing that, there's always this http://www.codeproject.com/cs/miscctrl/StylesSheetManager.asp[^]. I've never tried it, but it looks like it could be pretty decent.
Deja View - the feeling that you've seen this post before.
-
Upgrade to WPF and .NET 3. Seriously, this is relatively trivial in WPF (there are a couple of little gotchas). Failing that, there's always this http://www.codeproject.com/cs/miscctrl/StylesSheetManager.asp[^]. I've never tried it, but it looks like it could be pretty decent.
Deja View - the feeling that you've seen this post before.