Path: utzoo!utgpu!watserv1!watmath!att!rutgers!cs.utexas.edu!uunet!microsoft!kensy From: kensy@microsoft.UUCP (Ken SYKES) Newsgroups: comp.windows.ms Subject: Re: Dialog font question. Message-ID: <58321@microsoft.UUCP> Date: 17 Oct 90 23:39:25 GMT References: <1990Oct15.181205.6524@cec1.wustl.edu> Reply-To: kensy@microsoft.UUCP (Ken SYKES) Organization: Microsoft Corp., Redmond WA Lines: 28 In article <1990Oct15.181205.6524@cec1.wustl.edu> wilcox@wucs1.wustl.edu (Don Wilcox) writes: >Hi. > >I am having a problem for which no solution seems forthcoming. I have created >a dialog (using the dialog tool) for which I have set the font to "Tms Rmn" 10. >In the dialog editor, the box is resized and the font is changed, but when I >display the dialog in my app, everything's in the system font. I have tried There is a FONT operator that can be put in the dialog template that does what you want. Unfortunately the dialog editor doesn't write this operator out. Here is an example of how it is used: SAMPLE DIALOG LOADONCALL MOVEABLE DISCARDABLE 26, 19, 162, 90 FONT 8 "Helv" CAPTION "A dialog" STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | DS_MODALFRAME BEGIN Another game to play is to figure out what point size to select in the dialog editor that will prevent the contents from moving when it is used in the app (hint: in the above case it wouldn't be 8pt Helv, it would be more like 10 or 12) Hope this helps. Ken Sykes Disclaimer: The above opinions are solely my own.