Version

Moved Property (DialogWindowClientEvents)

Gets sets name of javascript function which is called after control was dragged to another location.
Syntax
'Declaration
 
Public Property Moved As String
public string Moved {get; set;}
Example
// The client event Moved takes two parameters sender and e
  // sender  is the object which is raising the event
  // e is the MoveEventArgs

  function WDW1_Moved(sender, e) {

      var wdw = $find("WebDialogWindow1");

      //Gets old left position
      var oldX = e.get_oldX();

      //Gets old top position
      var oldY = e.get_oldY();

      //Gets new left position
      var newX = e.get_x();

      //Gets new top position
      var newY = e.get_y();
      
      window.status = "Old postion : X(" + oldX +")Y(" +oldY + ") , New position : X(" +newX +")Y(" + newY +")"; 
      
}
Me.WebDialogWindow1.ClientEvents.Moved = "WDW1_Moved"
this.WebDialogWindow1.ClientEvents.Moved = "WDW1_Moved";
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also