[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1355.0. "color changing in scroll bar widget" by CSC32::B_BRADACH () Fri Sep 01 1989 14:43

    I have a customer whose application is written in C using uil. 
    He creates a scroll bar widget, specifying foreground/background colors
    in uil.  He then uses setarg and setvalues to alter these colors.
    What he is seeing is that the slider does not change color.
    
    Is the correct behavior and can anyone explain why?
    
    Thanks in advance for any information
    
    bernie
    csc/cs
    

T.RTitleUserPersonal
Name
DateLines
1355.1another example, any ideas?VFOVAX::METCALFThu Dec 07 1989 11:2215
    I'm inputting this for a resident, so bear with me if I'm not 100%
    correct in my explanation.  
    
    It appears we are having a similar problem to .0.  If a window and
    scroll bars are created separately and the colors are set it works
    fine.  If you create a text widget and specify the options within
    the text widget, the scroll bar takes the session manager's default
    background color.  It appears the same is happening with list box
    and maybe others as well.  Is this a known problem and are there
    workarounds or solutions in the works?
    
    Thanks in advance.  I'll pass along any results to the resident.
    He will be checking this over the weekend.
    
    Bruce
1355.2MELTIN::dickGvriel::SchoellerThu Dec 07 1989 12:0610
.0 sounds different from .1.  .0s problem is that the slider color is a
separate resource from foreground and background.

.1 is expecting the text widget and list box to pass colors to their children.
From UIL I don't know what happens.  From Xrm (decw$xdefaults.dat) if you
specify  widget*foreground: or widget*background: they will propagate if 
you specify widget.foreground: or widget.background: they won't.  From Xrm
the resource for slider color is "slider".

Dick
1355.3No trick, just brokeTOOLEY::B_WACKERThu Dec 07 1989 12:202
Propagation of colors and other things is broken in the toolkit. 
There's a qar and maybe a fix around V3 timeframe???