Author Topic: Rotating Wheel  (Read 2102 times)

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Rotating Wheel
« on: July 31, 2016, 11:26:29 PM »
This control is intended to show possible VB Net code for Rotation, Horizontal and/or Vertical image flip, limiting the control's paint region (thanks to Archie), 3D effects and some other code that can be used when creating your own controls.

If you do find a use for the control as it is, then good for you.

This control is AHMI control.

The "RW_RotationAngle" property of this control is defined as Single value with -360 to 360 range.
The "Value" property of this control is defined as Boolean value and, when set to True, will start Perpetual Rotation of the loaded image (so will the mouse DoubleClick event at Runtime).
The "PLCAddressDirectionOfPerpetualRotation" property of this control can be targeting either Boolean or Integer address to provide "0" or "1" value to change the direction of perpetual rotation.

If you set the PLCAddressRW_RotationAngle property, which will then have a PLC provide angle value, the Perpetual Rotation will not be active.
If you set the PLCAddressValue property, the mouse DoubleClick event will not be active.
« Last Edit: June 28, 2020, 05:56:28 AM by Godra »