[comp.os.os2] PM control of CONTROLS

tg2r@dale.acc.Virginia.EDU (Todd Greenwald) (12/22/89)

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  )?

(2)     When I overlay buttons using the dialog editor in test mode
        the 'deepest' button seems to be receiving the mouse message.
        Is there any way to have the message trapped and suspended by 
        the 'highest' button?

alistair@microsoft.UUCP (Alistair BANKS) (12/23/89)

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

kushner@ux3.lbl.gov (Gary Kushner) (12/23/89)

When I talk to microsoft the information I get is that the
toolkit 1.2 is not yet out, and no date has been set.  Any
idea when 1.2 will be released to the "general public?"

-Gary