10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

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.

Listview FieldsImageIndexSpecifies an index into the arrays SmallImageList and LargeImageList thatare associated with the listview field. These arrays are arrays ofBitmapObjects. The ImageIndex attribute let you specify a bitmap to bedisplayed with a listview item.When you examine the load_listview procedure, you can see how data isloaded into the listview field. The first step clears the ChoiceItems array. Theprocedure uses the AddItem method of the ChoiceList to add each newChoiceDetail object to the ChoiceList. The AddItem method adds a ChoiceDetailobject to the array and returns the position of the new item in the array. Afterusing AddItem to create a ChoiceDetail object and add it to the ChoiceList, itsets the first name and extension in the EnumSubText array and sets theImageIndex attribute using the previously calculated value.Finally, after adding the items to the ChoiceList, it invokes the UpdChoiceListmethod of the listview field and causes the new data to be displayed.Listview Field StylesYou can experiment with various field styles by selecting different styles fromthe Style menu of the listview_example. The Style attribute of a listview fielddetermines how the listview is displayed. The possible styles are:LVFS_DETAILSpecifies that the data should be displayed in columnsLVFS_LISTSpecifies that only the values from the first column of the detail view(EnumDisplay) should be displayed. The data is arranged in columns, andordered so that you read from top to bottom of the first column and thencontinue to read from top to bottom of all subsequent columns, left toright.LVFS_ICONSpecifies that the data should be displayed with large icons (bitmaps).Only the values from the first column of the detail view are displayed. Thedata is arranged in rows so that you read across the first row, then acrossthe second row, and continue to read across subsequent rows, top tobottom.264 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!