Thread View: comp.os.os2.programmer
3 messages
3 total messages
Started by Ed Greenberg
Mon, 13 May 1991 21:00
Changing fonts in dialog boxes
Author: Ed Greenberg
Date: Mon, 13 May 1991 21:00
Date: Mon, 13 May 1991 21:00
21 lines
1189 bytes
1189 bytes
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?
-edg
PS: OS/2 1.21 and C6.0
--
Ed Greenberg | Home: +1 408 283 0184 | edg@netcom.com
P. O. Box 28618 | Work: +1 408 764 5305 | CIS: 76703,1070
San Jose, CA 95159 | Fax: +1 408 764 5003 | WB2GOH @ N6LDL.CA.USA
Re: Changing fonts in dialog boxes
Author: CADSI
Date: Tue, 14 May 1991 03:08
Date: Tue, 14 May 1991 03:08
22 lines
1586 bytes
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. | |----------------------------------------------------------------------------|
Re: Changing fonts in dialog boxes
Author: Wim Bonner
Date: Tue, 14 May 1991 16:54
Date: Tue, 14 May 1991 16:54
17 lines
1322 bytes
1322 bytes
In article <1991May14.030855.18188@ccad.uiowa.edu> cadsi@ccad.uiowa.edu (CADSI) writes: >> 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. Is there a chance that someone can demonstrate either of these methods in this newsgroup? I have not found any way to do it in the references I have, and as this is the second time I've seen this type of request, and I have no idea how to do it, I'd like to see an example. Wim -- | wbonner@yoda.eecs.wsu.edu | The Loft BBS | 27313853@wsuvm1.csc.wsu.edu | (509)335-4339 | 72561.3135@CompuServe.com | USR HST Dual Standard HST/V.32
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads