Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!uunet!microsoft!alistair From: alistair@microsoft.UUCP (Alistair BANKS) Newsgroups: comp.os.os2 Subject: Re: PM control of CONTROLS Message-ID: <10057@microsoft.UUCP> Date: 22 Dec 89 22:22:47 GMT References: <1989Dec22.024746.4495@murdoch.acc.Virginia.EDU> Reply-To: alistair@microsoft.UUCP (Alistair BANKS) Distribution: usa Organization: Microsoft Corp., Redmond WA Lines: 40 In article <1989Dec22.024746.4495@murdoch.acc.Virginia.EDU> tg2r@dale.acc.Virginia.EDU (Todd Greenwald) writes: >I am coming to PM by way of hypercard and a few questions >have become apparent; any help would be greatly appreciated... > > >(1) Can you control the text font,size,color of the text > of control windows (pushbuttons, static fields, etc )? Below are a few lines from QuickHelp from the PM Programmer Toolkit 1.2 - persentation paramaters are a new thing in 1.2 - they are APIs and messages to send to windows to ask them to change font, colour etc - all standard controls respond to these, and you may imbed them in your dialog definitions although the Dialog Editor does not allow you to configure them 'by mouse' as yet. This PMTK 1.2 is available as an upgrade to the 1.1 version, from the same place you got your 1.1 version. #define INCL_WINSYS [1.2] BOOL WinSetPresParam(hwnd, id, cbParam, pbParam) HWND hwnd; /* window handle */ ULONG id; /* presentation parameter */ ULONG cbParam; /* presentation-parameter size */ PVOID pbParam; /* pointer to presentation parameter */ The WinSetPresParam function sets a presentation parameter. Parameter Description hwnd Identifies the window that contains the presentation parameters to set. id Identifies the presentation parameter to set. It may be one of the following values: Alistair Banks OS/2 Group Microsoft