April 28, 2024, 09:49:24 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


FONT in LISTVIEW ?

Started by paja, June 23, 2011, 08:54:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paja

Hi,

Is possible to use for different item/subitem in LV different font ?

Paja

sapero

That is possible, see attached example.

...
$define IDC_LIST1 1000
WINDOW d1

InitCommonControls()
OPENWINDOW d1,0,0,600,400,@MINBOX|@MAXBOX|...,0,"Multiple fonts in list view - demo",&demo_handler

lvSetItemFont(d1,IDC_LIST1,0,0,"Terminal", 12, 400, @SFITALIC)
...


The unchanged example may be a bit slow in drawing, because it uses 4*41 different fonts.
If you need to use bigger fonts, call SETFONT once to adjust the list view to the largest font.

paja

I tested program but with crash it. I use W7 64 bit.

Paja