// The client event Moving takes two parameters sender and e // sender is the object which is raising the event // e is the MoveEventArgs function WDW1_Moving(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.Moving = "WDW1_Moving"
this.WebDialogWindow1.ClientEvents.Moving = "WDW1_Moving";