Setting OS/2's Desktop Background Color 
Author Message
 Setting OS/2's Desktop Background Color

Can someone explain to me how to set OS/2's desktop background color from
a Rexx command.  I'm familiar with the SysSetObjectData, but can't seem to
find the object that defines the color.  The <background> attribute only seems
to take a bmp file name as an argument, but doesn't seem to handle colors.
I've looked through <WP_CONFIG> and <WP_CLRPAL>, found nothing promising,
and someone mentioned that these objects define other areas of the system
(forgot which, but not relating to the desktop).  My book is fairly vague
about SysSetObjectData and I looked through a few other REXX books at
MicroCenter to see if it was mentioned (it wasn't).  The color seems to be
stored in the attributes as an ordered triple of bytes (from EAUTIL)- I assume
that it's RBG values.  I guess I could extract the attribute values from
EAUTIL, patch the file, and place them back also using EAUTIL, but this
doesn't sound very failsafe (probably would blow up if I changed other
desktop settings or graphics modes - could errortrap it a bit, but also not
perfectly).  Can someone let me know what attribute and what possible value
types are used to set the color?  Thanks and later,
                                                               :\/\/\/:
                                    bob                        :______:
                                                               : (o)(o)
+----------------------------------------------------------+  c:   ___:

| Disclaimer:    Opinions expressed are mine and mine only.|   : ,___:
+----------------------------------------------------------+   : __ /
                                                               /____\


Tue, 02 Sep 1997 04:13:07 GMT  
 Setting OS/2's Desktop Background Color

Quote:

>Can someone explain to me how to set OS/2's desktop background color from
>a Rexx command.

Bob,

On Warp, use the following setup string - pass it to <WP_DESKTOP>:

   BACKGROUND      ?N,M,S,B,C         ?This sets the folder          ?
                   ?                  ?background, where:            ?
                   ?                  ?N = Image file name; This     ?
                   ?                  ?    name must be the fully-   ?
                   ?                  ?    qualified path of the     ?
                   ?                  ?    image file. "?:\" is      ?
                   ?                  ?    permitted to indicate the ?
                   ?                  ?    boot drive.               ?
                   ?                  ?                              ?
                   ?                  ?M = Image mode; This mode can ?
                   ?                  ?    be one of the following:  ?
                   ?                  ?    N = Normal image          ?
                   ?                  ?    T = Titled image          ?
                   ?                  ?    S = Scaled image          ?
                   ?                  ?                              ?
                   ?                  ?S = Scaling factor.           ?
                   ?                  ?                              ?
                   ?                  ?B = Background type; This can ?
                   ?                  ?    be one of the following:  ?
                   ?                  ?    I = Image                 ?
                   ?                  ?    C = Color only            ?
                   ?                  ?                              ?
                   ?                  ?C = Background color; This    ?
                   ?                  ?    color can be 3 numbers re-?
                   ?                  ?    presenting RGB values or  ?
                   ?                  ?    the default, in the       ?
                   ?                  ?    format:                   ?
                   ?                  ?                              ?
                   ?                  ?    {R-value G-value B-value} ?
                   ?                  ?                              ?
                   ?                  ?For example:                  ?
                   ?                  ?"BACKGROUND=                  ?
                   ?                  ?C:\OS2\BITMAP\OS2LOGO.BMP,S,  ?
                   ?                  ?3,I"     or                   ?                                                           ?
                   ?                  ?"BACKGROUND=                  ?
                   ?                  ?(none),,,C,0 128 128"         ?

Gregory Czaja                  ---> DeskMan/2 utilities



Tue, 02 Sep 1997 10:40:29 GMT  
 Setting OS/2's Desktop Background Color

This month's  'INSIDE OS/2' covers exactly this subject.


Quote:
> Can someone explain to me how to set OS/2's desktop background color from
> a Rexx command.  I'm familiar with the SysSetObjectData, but can't seem to
> find the object that defines the color.  The <background> attribute only seems
> to take a bmp file name as an argument, but doesn't seem to handle colors.
> I've looked through <WP_CONFIG> and <WP_CLRPAL>, found nothing promising,
> and someone mentioned that these objects define other areas of the system
> (forgot which, but not relating to the desktop).  My book is fairly vague
> about SysSetObjectData and I looked through a few other REXX books at
> MicroCenter to see if it was mentioned (it wasn't).  The color seems to be
> stored in the attributes as an ordered triple of bytes (from EAUTIL)- I assume
> that it's RBG values.  I guess I could extract the attribute values from
> EAUTIL, patch the file, and place them back also using EAUTIL, but this
> doesn't sound very failsafe (probably would blow up if I changed other
> desktop settings or graphics modes - could errortrap it a bit, but also not
> perfectly).  Can someone let me know what attribute and what possible value
> types are used to set the color?  Thanks and later,
>                                                                :\/\/\/:
>                                     bob                        :______:
>                                                                : (o)(o)
> +----------------------------------------------------------+  c:   ___:

> | Disclaimer:    Opinions expressed are mine and mine only.|   : ,___:
> +----------------------------------------------------------+   : __ /
>                                                                /____\

--
Paul Nadon                    

I've been Warped!!                



Wed, 03 Sep 1997 03:49:49 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Setting a web hex color as background color for a canvas

2. VX-Rexx: Desktop background color?

3. VX-Rexx: Desktop background color?

4. desktop background settings

5. setting button background color

6. How to set background color in VisualWorks 2.0

7. SWI-Prolog: How can I set the background and font color

8. Setting background colors in wpy

9. How can i change background color afte setting in canvas command

10. Setting foreground/background colors in a text block ???

11. how to set the background color of a window with curses

12. How to set toplevel widget background color?

 

 
Powered by phpBB® Forum Software