🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2623

Re: Changing fonts in dialog boxes

#2623
From: CADSI
Date: Tue, 14 May 1991 03:08
22 lines
1586 bytes
From article <1991May13.210053.13978@netcom.COM>, by edg@netcom.COM (Ed Greenberg):
> I am trying to create a dialog box, and have the fonts inside two
> controls be something other than the default font.  
> 
> My controls look like this:
> 
>        CONTROL "Text", ID_CALLSIGN, 5, 52, 94, 21, WC_STATIC, SS_TEXT |
>                DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
>         CONTROL "", ID_NAMEADDRESS, 107, 47, 114, 27, WC_MLE, MLS_BORDER | 
>                 WS_GROUP | WS_TABSTOP | WS_VISIBLE
> 
> Can anyone suggest how to tell the Dialog box to display different
> fonts?

Tell the entire Dialog to use a different font in the Dialog definition,
otherwise, send the WM_SETFONT message during the WM_INITDIALOG message.

|----------------------------------------------------------------------------|
|Tom Hite					|  The views expressed by me |
|Manager, Product development			|  are mine, not necessarily |
|CADSI (Computer Aided Design Software Inc.	|  the views of CADSI.       |
|----------------------------------------------------------------------------|
Technical Details
Message-ID: <1991May14.030855.18188@ccad.uiowa.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!iowasp.physics.uiowa.edu!ns-mx!ccad.uiowa.edu!cadsi
References: <1991May13.210053.13978@netcom.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!iowasp.physics.uiowa.edu!ns-mx!ccad.uiowa.edu!cadsi
Newsgroups: comp.os.os2.programmer
Subject: Re: Changing fonts in dialog boxes
Message-ID: <1991May14.030855.18188@ccad.uiowa.edu>
From: cadsi@ccad.uiowa.edu (CADSI)
Date: 14 May 91 03:08:55 GMT
References: <1991May13.210053.13978@netcom.COM>
Distribution: na
Organization: CAD-Research, U. of Iowa, Iowa City, Iowa
Lines: 22