[widgetry] grid text style

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

[widgetry] grid text style

Tudor Girba-3
Hi,

I want to increase the font size in a Grid but I do not know how. I  
tried

grid textStyle: (TextAttributes styleNamed: #large)

but it did not work. What am I doing wrong?

Cheers,
Doru

--
www.iam.unibe.ch/~girba
www.iam.unibe.ch/~girba/blog/

"To lead is not to demand things, it is to make them happen."


Reply | Threaded
Open this post in threaded view
|

Re: [widgetry] grid text style

Samuel S. Shuster <sames@interaccess.com>
Doru,

>I want to increase the font size in a Grid but I do not know how. I  
>tried
>
>grid textStyle: (TextAttributes styleNamed: #large)
>
>but it did not work. What am I doing wrong?

Nothing. The textStyle on the Grid really doesn't apply. Each cell type uses the
default of that pane, not the Grid.

                                And So It Goes
                                     Sames
______________________________________________________________________

Samuel S. Shuster [|]
VisualWorks Engineering, GUI Project
Smalltalk Enables Success -- What Are YOU Using?

Reply | Threaded
Open this post in threaded view
|

Re: [widgetry] grid text style

Tudor Girba-3
Ahh, right!

The way I solved it for now was to subclass Column with a  
VariableFontSizeColumn and override

displayPaneFor: aRow cell: aCell in: aGrid selected: ignored

to set the textStyle.

Is there another way?

Cheers,
Doru


On Aug 24, 2007, at 7:12 PM, Samuel S. Shuster wrote:

> Doru,
>
>> I want to increase the font size in a Grid but I do not know how. I
>> tried
>>
>> grid textStyle: (TextAttributes styleNamed: #large)
>>
>> but it did not work. What am I doing wrong?
>
> Nothing. The textStyle on the Grid really doesn't apply. Each cell  
> type uses the
> default of that pane, not the Grid.
>
>                                 And So It Goes
>                                      Sames
> ______________________________________________________________________
>
> Samuel S. Shuster [|]
> VisualWorks Engineering, GUI Project
> Smalltalk Enables Success -- What Are YOU Using?
>

--
www.iam.unibe.ch/~girba
www.iam.unibe.ch/~girba/blog/

"Every thing should have the right to be different."


Reply | Threaded
Open this post in threaded view
|

Re: [widgetry] grid text style

Samuel S. Shuster <sames@interaccess.com>
Doru,

>The way I solved it for now was to subclass Column with a  
>VariableFontSizeColumn and override
>
>displayPaneFor: aRow cell: aCell in: aGrid selected: ignored
>
>to set the textStyle.

That would be the best.

                                And So It Goes
                                     Sames
______________________________________________________________________

Samuel S. Shuster [|]
VisualWorks Engineering, GUI Project
Smalltalk Enables Success -- What Are YOU Using?