13.12.2012 Views

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

You can only add columns to an ’empty’ LISTVIEW widget. If it contains 1 or more<br />

rows you can not add a new column.<br />

LISTVIEW_AddRow()<br />

Description<br />

Adds a new row to a LISTVIEW widget.<br />

Prototype<br />

void LISTVIEW_AddRow(LISTVIEW_Handle hObj, const GUI_ConstString * ppText);<br />

Parameter Description<br />

hObj Handle of widget<br />

ppText Pointer to array containing the text of the LISTVIEW cells<br />

Additional information<br />

The ppText-array should contain one item for each column. If it contains less items<br />

the remaining cells left blank.<br />

LISTVIEW_CompareDec()<br />

Description<br />

Compare function for comparing 2 integer values.<br />

Prototype<br />

int LISTVIEW_CompareDec(const void * p0, const void * p1);<br />

Parameter Description<br />

p0 Void pointer to first value:<br />

p1 Void pointer to second value.<br />

Return value<br />

< 0 if value of cell 0 greater than value of cell 1.<br />

0 if value of cell 0 identical to value of cell 1.<br />

> 0 if value of cell 0 less than value of cell 1.<br />

Additional information<br />

The purpose of this function is to be used by the listviews sorting algorithm if the cell<br />

text represents integer values.<br />

For details about how to use this function for sorting, refer also to<br />

“LISTVIEW_SetCompareFunc()” on page 585.<br />

The Sample folder contains the example WIDGET_SortedListview.c which shows<br />

how to use the function.<br />

LISTVIEW_CompareText()<br />

Description<br />

Function for comparison of 2 strings.<br />

Prototype<br />

int LISTVIEW_CompareText(const void * p0, const void * p1);<br />

Parameter Description<br />

p0 Void pointer to first text:<br />

p1 Void pointer to second text.<br />

UM03001 User & Reference Guide for <strong>emWin</strong> V5.18 © 1997 - 2012 <strong>SEGGER</strong> <strong>Microcontroller</strong> GmbH & Co. KG<br />

575

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!