MouseUp not firing on rct

  1. 11 months ago

    Scott R

    13 Apr 2018 Pre-Release Testers, Xojo Pro

    I have a ControlContainer with a rectangle in the foreground with a MouseUp event defined. I place a break point on the Call ItemClicked() line in the MouseUp event. When the webapp is run, the event does not fire. The ControlContainer itself contains no defined events. MouseUp is the only defined event on the rectangle.

    Sub MouseUp(X As Integer, Y As Integer, Details As REALbasic.MouseEvent) Handles MouseUp
      Call ItemClicked()
    End Sub

    Any ideas?

  2. Greg O

    13 Apr 2018 Xojo Inc

    @Michel B You must return True in MouseDown.

    Not on web you don't.

  3. Michel B

    13 Apr 2018 Pre-Release Testers

    Sorry. Should have better read the channel title. My mistake.

  4. Scott R

    13 Apr 2018 Pre-Release Testers, Xojo Pro

    If these events are defined on the instance of the ContainerControl, the MouseUp event doesn't fire. However if I delete the events, it does. Makes no sense to me.

    Sub MouseExit() Handles MouseExit
      me.Cursor = System.WebCursors.Automatic
    End Sub
    Sub MouseEnter() Handles MouseEnter
      me.Cursor = System.WebCursors.FingerPointer
    End Sub

or Sign Up to reply!