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.

How You Can Work with ImagesFor example, the following illustration shows some of the possibleconfigurations for a sixteen-cell palette field:The five-column display was compressed to four columns because four emptycells are not allowed for a column that is only five values high. Note that thechild order is along the major axis.Note: Display is based on actual data as well as the values of the Columns andOrientation attributes. Therefore, when building a palette field dynamically,verify the number of actual cells by modifying the palette field's contents andcalling the UpdChoiceList method prior to setting the number of columns.BitmapObject ClassThe BitmapObject class provides attributes and methods that enable you tomanipulate the images displayed in an image field. For example, when youcreate an image field on a form, it is similar to an empty picture frame. Todisplay an image in that picture frame, use the BitmapObject's FileHandleattribute to display an image stored in a file.Setting a BitmapObject attribute does more than change the image field'svalue. Each time you change the value, OpenROAD executes the impliedprocedures. For example, when you set the FileHandle attribute to a new valueand the BitmapObject is associated with an image field, OpenROAD displaysthe new image in the field. This simplifies your coding, because you only needto set the attribute.282 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!