Extra practice
Using controls in applications shows how to use the OLE Control part on the palette to use a progress bar control. Try using the generated class
ProgressBarControl instead of the OLE Control palette part.
Using wrapped classes instead of an OLE Control palette part offers several advantages:
• Wrapped classes automatically generate VA Smalltalk actions to map the OLE methods and VA Smalltalk event handlers to signal OLE events. When using the OLE Control palette part, you must write code to invoke OLE methods and register OLE event handlers.
• You can customize and subclass generated classes. After generating an OLE wrapper class, you can use the Public Interface Editor to add more actions to a part, or override methods from its superclass.
For more ideas on how to use the OLE Support parts, look at the examples loaded as part of the OLE Support feature. To see how OLE parts can be used in Smalltalk applications, load the ST: OLE Samples and examine the classes in OleExamples.
Last modified date: 06/02/2020