Previous Topic: Add logic to the “select image” click eventNext Topic: Add logic to the window “open” event


Add logic to the “remove image” click event

Follow these steps:

  1. To remove an image from the display, we need only invoke the OCX Controls Clear method.

    In the eGolfer Score Card action diagram, select the score_card_pb_remove_image_click event.

  2. Add the Invoke statement.
  3. In the Add Statement dialog select Window Object and then EGOLFER_SCORE_CARD.csXImageOCXControl (OLEControl). You will be presented with the OLE Object Browser dialog.
  4. In the list of Methods scroll down and select the Clear method.
  5. Then click OK and then click the Add Statement Add push button. Your diagram will now look as follows:

    The eGolfer Score Card Diagram after removing an image from the display