OLE objects and the OLE presentation style – PB Docs 2017

OLE objects and the OLE presentation style

Whether you insert an OLE object into a DataWindow object or
create a new DataWindow object using the OLE presentation style, you are
working with an OLE container object within the DataWindow
object.

Similarities

They have these characteristics in common:

  • Icon or contents

    The DataWindow object can display the OLE object as an icon,
    or it can display an image of the contents when display of contents
    is supported by the server.

  • Data from the DataWindow
    object

    You specify which DataWindow columns you want to transfer to
    the OLE object. The data that is sent to the OLE server replaces the
    OLE object template specified in the painter.

Differences

The OLE object in a DataWindow object and the OLE presentation
style have these main differences:

  • Associating the object with
    rows

    When the OLE object is added to a DataWindow object, you can
    associate it with individual rows, groups of rows, or all rows. In
    the presentation style, the OLE object is always associated with all
    rows.

  • Properties view

    The Properties view for an OLE object has different pages and
    some different properties from the OLE DataWindow object. For
    example, the Properties view for an OLE object in a DataWindow
    object does not contain detailed print specification settings
    because these are set in the DataWindow object’s own Properties
    view. However, it does have settings related to the position of the
    OLE object within the DataWindow object.

Not all servers are appropriate

The features of the OLE server application determine whether it
can provide useful information in a DataWindow object.

If the server does not support display of contents, it is not
useful for objects associated with rows. The user sees only the icon.
Some servers support the display of contents, but the view is scaled
too small to be readable even when the object is activated.

In this section

This section includes procedures for:

  1. Adding an OLE object to a DataWindow object

  2. Using the OLE presentation style

  3. Defining the OLE object

  4. Previewing the DataWindow object

  5. Specifying DataWindow data for the OLE object


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x