This is a simple DUIM example program for freehand line drawing. It demonstrates the following techniques:
handle-repaint
method.In Functional Developer Professional and Enterprise editions there is a companion example called OLE Scribble which demonstrates converting this DUIM application to an OLE control.