[SOLVED] Question on User Pop Up - strange behavior

Answered
0
0

I am using a user pop up as a small dialog.  I want to be able to move it around the screen with the mouse – so have set Movable = true.

The problem I am running into is that you can only move it so far.  It suddenly stops – and you can no longer move.  Also if you have moved it close to the point where it stops – and then you click on it – sometimes it will jump back a little bit.  Hard to explain.  But please see the attached sample project.

Click the [Launch Poup] button – then try moving the pop up.  You’ll see that you can move it – but not over the entire window as you would expect to be able to.  Its like it has an invisible boundary and the boundary seems a bit eratic too.  Very strange behavior.

Is this some property settings that I do not understand?  Or a bug?

Thanks in advance for your help.

  • You must to post comments
Best Answer
0
0

Workaround:

  • Change the base class to UserControl
  • Change Display() to
 Public Sub Display()
    Me.Show()
    Me.Location = MousePosition
    Me.BringToFront()
 End Sub

  • Change Button1_Click to
 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
   Dim pop As New UserPopup1
   pop.Parent = Me
   pop.Display()
 End Sub
  • You must to post comments
0
0

Hi Matthew,

that issue (#1642) is fixed in the latest Wisej development build (1.5.32).

Best regards
Frank

  • You must to post comments
0
0

Thank you Luca.  The work around does the trick – I think I can make that work well in my project.

 

Matthew

  • You must to post comments
0
0

The UserPopup control was not enabled for being movable, just resizable.

When Wisej creates the UserPopup control is creates it inside a floating popup widget (it has to be able to go over anything, like a combobox dropdown or a menu) so the widget you are creating is actually  inside another, the popup.

With the movable property set to true, you end up moving your UserPoup inside the original location of the real popup. We had the same issue with Resizable.

Will log the issue.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.