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 FieldsLVFS_SMALLICONSpecifies that the data should be displayed with small 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.The sizes of the icons are determined by the following listview fieldattributes:• SmallIconHeight with a default of 16• SmallIconWidth with a default of 16• LargeIconHeight with a default of 32• LargeIconWidth with a default of 32Listview Field EventsSeveral useful events are associated with listview fields. The script forlistview_example illustrates how you can use them. The script also shows howyou can resize a listview field on a WindowResized event.If you run OpenROAD Workbench with the trace window enabled, thelistview_examples frame posts messages to the trace window when one of thefollowing events occurs:• Click• DoubleClick• HeaderClick• SetValueThe messages in the trace window display the order in which events aregenerated. These are:Click and DoubleClick EventThe first click causes a SetValue event. A DoubleClick event occurs whenthe user double-clicks the text in the first column or on the associatedbitmap. The second click, if done quickly, causes a DoubleClick event. Inlistview_examples, a message is displayed in the frame's status bar whena DoubleClick event occurs. You might use the DoubleClick event to dosomething such as updating another frame.Note: You may lose a DoubleClick event if too much time is spentprocessing the preceding SetValue event.Working with List Views and Tree Views 265

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

Saved successfully!

Ooh no, something went wrong!