Summary

VLF Windows Application Development

Summary

VFW090 – Field Visualizations

Important Observations

  • Field Visualizations are ideally suited to static lists of data for example, Yes, No; Male, Female and so on.

Tips & Techniques

  • The field visualization is controlled by the visualization class.

     BEGIN_COM ROLE(*Visual <class name>)...

  • For fields used stand alone on forms, the following classes can be used:
  • Edit Box (PRIM_EVEF)
  • Spin Edit (PRIM_EVSE)
  • Button Sets (PRIM_EVPL)
  • Combo Boxes (PRIM_EVPL)
  • Image Sets (PRIM_EVPL)
  • Check Boxes (PRIM_EVPL)
  • Track Bars (PRIM_EVTB)
  • Progress Bars (PRIM_EVPB)
  • The default picklist visualization is a set of radio buttons for the PRIM_EVPL visualization class, that is, the default is Appearance(ButtonSet).
  • For the picklist, the BEGIN_COM Role(*Visual #PRIM_EVPL) Name(#VisualPicklist) Appearance(xxxxxxxxxx) may have values where xxxxxxxxxx is ButtonSet, CheckBox, ListBox, DropDown, Image, and ImageAndText.
  • When using a check box, the order of the picklist values is important. Clicking the check box will set the corresponding value for the field from the picklist items. Values are chosen from the following rule.
  • Checkbox Unchecked = First picklist item value
  • CheckBox Checked = Last picklist item value
  • CheckBox grayed = Any picklist item between first and last or an invalid value. (for example, Changing the value of the field to a value that is not the first or last item in the picklist will result in the checkbox being grayed.)
  • A single field may have many field visualizations. Field visualizations can improve developer productivity and improve the consistency of your applications.
  • When you change an existing field visualization, forms and reusable parts which use it will not change until they are recompiled.

What I Should Know

  • How to insert a new field visualization.
  • How to change a field visualization by changing the visualization class.
  • The purpose of the Appearance() property when defining a visualization.
  • How to change a field visualization by changing the component properties.
  • How to create a picklist visualization.
  • How to select a field visualization for a form.