IonicWind Software

IWBasic => GUI Central => Topic started by: paja on June 23, 2011, 08:54:14 AM

Title: FONT in LISTVIEW ?
Post by: paja on June 23, 2011, 08:54:14 AM
Hi,

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

Paja
Title: Re: FONT in LISTVIEW ?
Post by: sapero on June 27, 2011, 02:38:22 PM
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.
Title: Re: FONT in LISTVIEW ?
Post by: paja on June 29, 2011, 11:55:11 AM
I tested program but with crash it. I use W7 64 bit.

Paja