🚀 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 Stephen M. Lacy Wed, 22 Jul 1992 12:48
Which message on Font Change.
#424
Author: Stephen M. Lacy
Date: Wed, 22 Jul 1992 12:48
19 lines
1546 bytes
	I've been typing in some more of the sample progrmams from the book
that I recently got, and my question is this:  I'm using the function
GpiCharStringAt, and just for the hell of it, I brought up the "Font
Palette" and dragged a different font to my window to see what would
happen.  There was no visible change, but if I then "invalidated" some
portion of the window, that portion, when refreshed, came back in the
new font.  My question is:  What message is sent to my window procedure
when I drag a new font to the window?  I tried a couple of the more
obvious ones, I don't remember their names right now, something about
SYSVALUE and COLORCHANGE, I'm not sure.  Also, I'm assuming that this is
the way these features work, if they're not, let me know what the
standard way of dealing with them is.  I've also tried dragging a new
color to the window, and it seems to make no difference at all.  Is
there a message that also goes with a color change?  Some pseudo-code
would also be helpful.  Thanks.  

Steve
"Emma, please stop chewing on my purple love seat."
Re: Which message on Font Change.
#486
Author: Dave Briccetti
Date: Sun, 26 Jul 1992 18:07
27 lines
1788 bytes
sl31+@andrew.cmu.edu (Stephen M. Lacy) writes:
: 
: 	I've been typing in some more of the sample progrmams from the book
: that I recently got, and my question is this:  I'm using the function
: GpiCharStringAt, and just for the hell of it, I brought up the "Font
: Palette" and dragged a different font to my window to see what would
: happen.  There was no visible change, but if I then "invalidated" some
: portion of the window, that portion, when refreshed, came back in the
: new font.  My question is:  What message is sent to my window procedure
: when I drag a new font to the window?  I tried a couple of the more
: obvious ones, I don't remember their names right now, something about
: SYSVALUE and COLORCHANGE, I'm not sure.  Also, I'm assuming that this is
: the way these features work, if they're not, let me know what the
: standard way of dealing with them is.  I've also tried dragging a new
: color to the window, and it seems to make no difference at all.  Is
: there a message that also goes with a color change?  Some pseudo-code
: would also be helpful.  Thanks.  
: 
Did you look at WM_SETWINDOWPARAMS?  The WNDPARAMS structure contains
Presentation Parameter length and data pointer elements.

-- 

Dave Briccetti, Owner, Dave Briccetti & Associates
OS/2 Developer/Consultant
P.O. Box 1713
Lafayette, CA  94549-7013
Re: Which message on Font Change.
#498
Author: Roger Fearick
Date: Mon, 27 Jul 1992 10:53
24 lines
1668 bytes
In article <n2kmz5m.daveb@netcom.com> daveb@netcom.com (Dave Briccetti) writes:

>sl31+@andrew.cmu.edu (Stephen M. Lacy) writes:
>: 
>: new font.  My question is:  What message is sent to my window procedure
>: when I drag a new font to the window?  I tried a couple of the more
>: obvious ones, I don't remember their names right now, something about
>: SYSVALUE and COLORCHANGE, I'm not sure.  Also, I'm assuming that this is
>: the way these features work, if they're not, let me know what the
>: standard way of dealing with them is.  I've also tried dragging a new
>: color to the window, and it seems to make no difference at all.  Is
>: there a message that also goes with a color change?  Some pseudo-code
>: would also be helpful.  Thanks.  
>: 
>Did you look at WM_SETWINDOWPARAMS?  The WNDPARAMS structure contains
>Presentation Parameter length and data pointer elements.

The window gets a WM_PRESPARAMCHANGED message.
You can get the new presentation parameter (font, colour, etc) by
an appropriate call to WinQueryPresParam.

Roger Fearick                 *  Internet: fearick@physci.uct.ac.za
Dept. of Physics              *
University of Cape Town       *
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