SET WINDOW TRANSPARENT Commands

 

Sets the level of a Window's transparency when it is displayed on screen

 

 

Description:

 

This command changes the apperance of a Window by adjusting how visible objects behind the Window are. By default, Windows are completely opaque so objects behind them are obscured. When the level of transparency is changed, the Window becomes more "see through" so that other Windows or objects behind the Window become more visible

 

Syntax:

 

    SET WINDOW <FormName> TRANSPARENT TO COLOR <aRGBColor>

 

    SET WINDOW <FormName> TRANSPARENT TO <nAlphaBlend>

 

    SET WINDOW <FormName> [ TRANSPARENT ] TO OPAQUE

 

Valid For Use With:

 

This command can be used for all definable Window types

 

Notes:

  1. These commands are only available after the Window has been defined

  2. SET WINDOW <FormName> TRANSPARENT TO COLOR <aRGBColor>

    • This command sets the Window transparency to a colour as defined by its' Red, Green and Blue (RGB) combination. This is passed to the command in the form of an array comprised of three numeric elements ranging from 0 to 255

    • The i_color.ch header file contains definitions for a wide range of colours. For example, the definition of ORANGE represents the array { 255 , 128 , 64 }

    • Testing of this command has not produced any colour change to the Window transparency. Instead, the transparency level is set back to opaque. It is, therefore, possible that this may be a bug in HMG or a constraint with Windows 10

  3. SET WINDOW <FormName> TRANSPARENT TO <nAlphaBlend>

    • This command sets the Window transparency to an Alpha Blend level ranging between 0 (invisible) to 255 (opaque)

    • Testing of this command has produced changes to the Window transparency

  4. SET WINDOW <FormName> TRANSPARENT TO OPAQUE

    • This command sets the Window transparency to fully opaque

  5. No seperate help documentation was published with the original or subsequent releases of HMG

Sample Code:

 

Sample code to test these Commands can be found here