🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
3 messages
3 total messages Started by David Brown Thu, 11 Apr 1991 14:41
Using WinSetPresParam to change font
#2531
Author: David Brown
Date: Thu, 11 Apr 1991 14:41
14 lines
826 bytes
Does anyone know the correct arguments for WinSetPresParam() to change
the font of a dialog control?  According to the documentation, the ID
value is PP_FONTNAMESIZE, but it doesn't say what the buffer contents
and length should be.

I would like to change one of my controls to use a slightly larger
font, such as Helv 18, bold if possible.

Thanks,
	Dave
---
David C. Brown		|  uunet!mnetor!motto!dave
Motorola Canada, Ltd.	|  416-499-1441 ext 3708
Communications Division	|  "Of course I'm above average!  Who isn't?"
Re: Using WinSetPresParam to change font
#2539
Author: Larry Salomon, Jr.
Date: Mon, 15 Apr 1991 15:39
21 lines
1392 bytes
In <45@motto.UUCP>, dave@motto.UUCP (David Brown) writes:
>
>Does anyone know the correct arguments for WinSetPresParam() to change
>the font of a dialog control?  According to the documentation, the ID
>value is PP_FONTNAMESIZE, but it doesn't say what the buffer contents
>and length should be.
>
>I would like to change one of my controls to use a slightly larger
>font, such as Helv 18, bold if possible.

buffer="18.Helv"
len=strlen(buffer)+1  (for the null character)

Cheers,
Larry Salomon, Jr. (aka 'Q')            LARRYS@YKTVMV.BITNET
OS/2 Applications and Tools             larrys@ibmman.watson.ibm.com
IBM T.J. Watson Research Center         larrys@eng.clemson.edu
Yorktown Heights, NY

Disclaimer:  The statements and/or opinions stated above are strictly my
own and do not reflect the views of my employer.
Re: Using WinSetPresParam to change font
#2544
Author: Ramesh_Rama_Pendakur
Date: Tue, 16 Apr 1991 18:44
8 lines
750 bytes
The best way to change fonts in a dialog control is right in the .RC file
using PRESPARAMS statement in the dialog description. Otherwise, working 
with fonts is a real trouble. Simply changing Presentation Parameters will not
work. For the right way of doing it check Petzold's "Programming the OS/2
Presentation Manager".  Good luck,


	- ... -
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