Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!hub.ucsb.edu!amadeus.ucsb.edu!grosen From: grosen@amadeus.ucsb.edu (Mark D. Grosen) Newsgroups: comp.windows.ms Subject: FONTS option in dialog box description Message-ID: <6235@hub.ucsb.edu> Date: 6 Sep 90 02:38:32 GMT Sender: news@hub.ucsb.edu Reply-To: grosen@amadeus.ucsb.edu (Mark D. Grosen) Organization: University of California, Santa Barbara Lines: 33 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