Disabling a non-default colored label 
Author Message
 Disabling a non-default colored label

In VisualWorks sending #disable to a SpecWrapper containing a Label as
in:

        (self builder componentAt: #aLabel) disable

will ghost-out (lighten the foreground color of) the Label.

However if the labels forground color is modified to any other color
(including black) statically in the Painter or dynamically the ghosting
no longer works.

Can anyone enlighted me?

--

Rick Holland

"Logic is a bunch of pretty flowers, that smell bad"



Sat, 05 Jun 1999 03:00:00 GMT  
 Disabling a non-default colored label

Quote:

> In VisualWorks sending #disable to a SpecWrapper containing a Label as
> in:

>         (self builder componentAt: #aLabel) disable

> will ghost-out (lighten the foreground color of) the Label.

> However if the labels forground color is modified to any other color
> (including black) statically in the Painter or dynamically the
> ghosting no longer works.

Looks like one would have to set the foreground color to nil before
disabling a widget if the end user expects to recognize disabled widgets
as light-gray in color.

| myLabel |
myLabel := (self builder componentAt: #aLabel).
myLabel lookPreferences: (myLabel lookPreferences foregroundColor: nil).
myLabel disable.

- Alexis



Sat, 05 Jun 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. tk_getSaveFile disabled 'File' label

2. Disable a label

3. disable/enable label entry with checkbutton

4. Q: Disabled labels?

5. How to disable labels ??

6. How to disable labels ??

7. Disabling Labels (?)

8. Disabling Label widgets

9. show label and terminal as default?

10. Setting Default Label Position

11. Non-alphanumerics in label

12. APL+Win Label background color

 

 
Powered by phpBB® Forum Software