[vwnc] InputField

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] InputField

Annick
Hi,

I would like to use an InputField with white fonts (which is OK) but  
when editing I keep getting a white background and blue selection.
How can I get rid of it ?

Annick Fron

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] InputField

Alex Baran

Hello Annick,



The view has widgetState, which store information about appearance. You can modify the state. WidgetState use LookPreferences for storing colors. So the code can look like:

 

inputFieldView state colors: myColors 


where myColors is instance of LookPreferences.



Hope this help,

Alex

    I'm looking for a Smalltalk job

    http://aleksijb.googlepages.com/resume.htm



2008/11/21 Annick Fron <[hidden email]>

— Скрыть цитируемый текст —


Hi,


I would like to use an InputField with white fonts (which is OK) but

when editing I keep getting a white background and blue selection.

How can I get rid of it ?


Annick Fron


_______________________________________________

vwnc mailing list

[hidden email]

http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] InputField

Alex Baran
Annick,


Sorry, I did not check the code. Looks like an unfinished part in TextEditorView. But it can be corrected:

TextEditorView>>backgroundColor
state hasBackgroundColor ifTrue: [^state colors backgroundColor].  "Missed in original implementation"

^self isEnabled
ifTrue: [SymbolicPaint background]
ifFalse: [SymbolicPaint inactiveBackground]

The same correction can be done for other color selection methods. You can look at TextEditorView visual appearance category.

LookPreferences knows only about one kind of background. So if you want various colors for active and inactive background LookPreferences should be patched too. Another solution is to make subclass from InputFieldView and redefine backgroundColor, foregroundColor, ... 

P.S. I can not find package "Fix Color Text Selection" to check what are there.


Alex
   I'm looking for a Smalltalk job 


2008/11/24 Annick Fron <[hidden email]>
Hello Alex,

Should I load the package "Fix Color Text Selection " ?


Le 24 nov. 08 à 12:26, Alex Baran a écrit :

Hello Annick,


The view has widgetState, which store information about appearance. You can modify the state. WidgetState use LookPreferences for storing colors. So the code can look like:

 

inputFieldView state colors: myColors 

where myColors is instance of LookPreferences.


Hope this help,
Alex
    I'm looking for a Smalltalk job


2008/11/21 Annick Fron <[hidden email]>
― Скрыть цитируемый текст ―

Hi,

I would like to use an InputField with white fonts (which is OK) but
when editing I keep getting a white background and blue selection.
How can I get rid of it ?

Annick Fron

_______________________________________________
vwnc mailing list
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc