Bold description of an item in a list

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

Bold description of an item in a list

Sebastián Sastre
Hi all,

    can anybody make a listPresenter to show some intems in bold (as the
mail clients usually do with new messages) ???

    regards,

--
Sebastián Sastre
[hidden email]
www.seaswork.com.ar


Reply | Threaded
Open this post in threaded view
|

Re: Bold description of an item in a list

Christopher J. Demers
"Sebastian Sastre" <[hidden email]> wrote in message
news:bo66bn$18a6qq$[hidden email]...
> Hi all,
>
>     can anybody make a listPresenter to show some intems in bold (as the
> mail clients usually do with new messages) ???

You could use something like this:
========================
lp := ListPresenter show: 'Enhanced list view' on: #('bold' 'not bold'
'bold' 'certainly not bold' ).
lv := lp view .
column := lv columnsList first.
column customDrawBlock: [:cdba | cdba item = 'bold' ifTrue: [cdba font: cdba
font beBold.]].
========================
Look in the development tools for more examples of how custom draw blocks
work.  They can be quite powerful.

Enjoy,
Chris


Reply | Threaded
Open this post in threaded view
|

Re: Bold description of an item in a list

Sebastián Sastre
Wonderful tip

    thanks Chris,
--
Sebastián Sastre
[hidden email]
www.seaswork.com.ar


"Christopher J. Demers" <[hidden email]> escribió en el
mensaje news:bo682b$189nbe$[hidden email]...

> "Sebastian Sastre" <[hidden email]> wrote in message
> news:bo66bn$18a6qq$[hidden email]...
> > Hi all,
> >
> >     can anybody make a listPresenter to show some intems in bold (as the
> > mail clients usually do with new messages) ???
>
> You could use something like this:
> ========================
> lp := ListPresenter show: 'Enhanced list view' on: #('bold' 'not bold'
> 'bold' 'certainly not bold' ).
> lv := lp view .
> column := lv columnsList first.
> column customDrawBlock: [:cdba | cdba item = 'bold' ifTrue: [cdba font:
cdba
> font beBold.]].
> ========================
> Look in the development tools for more examples of how custom draw blocks
> work.  They can be quite powerful.
>
> Enjoy,
> Chris
>
>