[comp.windows.ms] FONTS option in dialog box description

grosen@amadeus.ucsb.edu (Mark D. Grosen) (09/06/90)

I am trying to use the FONT option in a dialog box description.  Something
like

100 DIALOG LOADONCALL MOVEABLE DISCARDABLE 31, 51, 146, 77
STYLE DS_MODALFRAME | WS_SYSMENU | WS_VISIBLE | WS_POPUP | DS_LOCALEDIT
CAPTION "ShowDIB"
FONT 8, "Helv"
BEGIN
	   CONTROL "Ok", 1, "button", BS_DEFPUSHBUTT WS_CHILD, 2, 5, 0, 0
END

The reference manual says that this should cause all the text in the box
to be drawn using 8-point Hevl (if the font is available).  I checked 
in the Fonts control panel, and Helv is installed at 8 points.  The
ref manual also mentions using "LoadFont" to load a font.  I see no
mention of this in the ref manual or the readme files.

The above approach does not appear to work:  I never get the Helv font.
I know I could use WM_SETFONT during initialization of the dialog box,
but this seems like a major pain.

Has anybody else gotten this to work?

THanks.

Mark

Mark D. Grosen		ARPA: grosen@amadeus.ucsb.edu
Signal Processing Lab / Communications Research Lab
ECE Dept.
University of California
Santa Barbara, CA  93106