|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Sat Apr 14, 2007 9:14 pm
Using styles |
Has anyone figured out how to use the Styles interface to set the font properties of a child window? I've been trying but with not much luck.
Also the #STYLE command isn't active yet so I can't guess it that way either. |
|
_________________ Asati di tempari! |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Sat Apr 14, 2007 10:07 pm |
Thought it was just me that didn't know. I hadn't got around to asking yet
|
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Apr 15, 2007 1:06 am |
What do you mean by the "font properties of a child window"? I'm not sure if it's intended or not (don't know what's stored in the ini and what's stored in the pkg), but it's impossible to have separate colour and font settings for different windows. Any changes you make in the settings of one window's styles will apply in the other windows' styles.
Also, is it intended that there now be no way to set the output window font? With the old font menu gone, you can't change it. |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Sun Apr 15, 2007 2:37 pm |
Sweet! I've found the place for all of this.
Preferences -> Styles
Each interface has a folder and each folder can have its own fonts etc. I am not sure how to explain it. Just go LOOK |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Sun Apr 15, 2007 2:42 pm |
Btw, remember that you can select the preferences for each window/module from the drop down at the top left of the preference window.
|
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Apr 15, 2007 2:52 pm |
Yes Arminas, but that doesn't work. If you select the preferences for one window and change, say, the command line style to purple, it'll affect both windows. That's what I was talking about.
Oh, and it's still called Fonts on the Options menu. |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Sun Apr 15, 2007 4:35 pm |
Ah right, Now that I play with it I cannot find the one that does the mud output window either.
I can and have played with the settings editor fonts though.
The status window style properly changes the font size, type, and the window background but not the font color. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Apr 15, 2007 7:03 pm |
There isn't one for the MUD Output window because it doesn't use the style system. It's something to do with the way Windows interacts with the message objects as they appear on the screen. Zugg's posted about it.
I'm just saying that now the Style menu's replaced the Fonts menu, there's no way to change the old-style MUD Output Window Font setting. Perhaps %pref can still do it? |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Apr 16, 2007 12:50 am |
You're right Fang. The %pref() command does work, but you have to do it from the command line of the child window.
Here are the relevant options.
OutputFontName
OutputFontSize
InputFontName
InputFontSize
EditorFontName
EditorFontSize
StatusFontName
StatusFontSize |
|
_________________ Asati di tempari! |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Apr 17, 2007 6:27 pm |
Fang is correct. I mentioned this in my blog. The MUD windows all use ANSI colors and not Windows colors. The Style system currently only works for things that take full Windows colors. I need to modify the style system to handle MUD window colors. That's why the "Color Theme" preference panel is still there...eventually this will be replaced by a set of styles.
Sorry that I forgot to add a way to set the main MUD window font. That was definitely an oversight. But you should only need to use %pref for the OutputFontName and OutputFontSize options. The Input (command line), Editor, and Status window stuff can already be changed in the General style folder.
And yes, there is no #STYLE command yet. As I mentioned in the Blog, I didn't have time to implement that in this version yet. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Apr 17, 2007 7:19 pm |
What about having different styles for different windows? This doesn't work at the moment.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Apr 17, 2007 7:24 pm |
Right now, all of the Styles that you see listed are all "global" styles (stored in the styles.ini file). Even in past versions, the command line, status window, and editor window fonts were global preferences (stored in the cmud.ini file).
That's one of the other reasons the current Styles don't include the MUD output window stuff. In addition to the ANSI issue mentioned above, the MUD output window font is *not* a global preference and is stored in the PKG file. And that's what the Style system doesn't support yet. The #STYLE command will be used to create styles specific to a PKG file, and I'll probably need to add these to the Package Editor rather than the Preferences screen. That makes the pkg-specific styles a bit more complicated and I haven't decided how to handle this yet.
The main purpose for the Styles in v1.27 was to just get the Syntax Highlighter styles in a place where you can edit them. And those are all global styles. |
|
|
|
|
|