thanks Nicolai! 


Ing. Pablo Digonzelli 
Software Solutions 
IP-Solutiones SRL 
Metrotec SRL 
25 de Mayo 521 
Email: [email protected] 
[email protected] 
Cel: 5493815982714 

----- Mensaje original -----

De: "Nicolai Hess" <[email protected]> 
Para: "Pharo Development List" <[email protected]> 
CC: "Any question about pharo is welcome" <[email protected]> 
Enviados: Jueves, 26 de Junio 2014 18:55:26 
Asunto: Re: [Pharo-dev] spec question 


2014-06-26 23:13 GMT+02:00 Pablo R. Digonzelli < [email protected] > : 




Hi all, two questions about Spec. 

1) How can i change the font for a ListModel or TextModel? 

2) I try , but nothing happend . I does not work but there is no error also 

l := ListModel new. 
l backgroundColorBlock: [ Color red ]. 
l openWithSpec . 

Can I change de backcolor of ListModel ? 

Sorry for my english. 

TIA 




Ing. Pablo Digonzelli 
Software Solutions 
IP-Solutiones SRL 
Metrotec SRL 
25 de Mayo 521 
Email: [email protected] 
[email protected] 
Cel: 5493815982714 







About the font: I don't know if this is possible. 

For the background color: 

This works only for the background of the list cells. If there is no entry 
in your listmodel list, the list view is empty as well and there is nothing 
to show. 

This works: 

ListModel new 
items: (1 to: 10); 
backgroundColorBlock: [ :item :index |Color red ]; 
openWithSpec. 

or with more colors :) 

ListModel new 
items: Color registeredColorNames ; 
backgroundColorBlock: [ :item :index | Color named:item]; 
openWithSpec. 



Reply via email to