Article Details
Id:12187
Product:finPOWER Connect
Type:NEW
Version:2.02.00
Opened:11/08/2014
Closed:22/08/2014
Released:29/09/2014
Job: J013780

Page Sets; Script can now show Wait pointer

Page Set Scripts can now display a Wait pointer, E.g., if you know that the Script code will take a few seconds to execute.

NOTE: Exiting certain events such as a Button's Click event will automatically reset the mouse pointer to its default.

The following code sample will show the Wait pointer and suspend the current thread for a second:

Public Sub cmdButton1_Click(sender As Object, e As finPageObjectClickEventArgs) Handles cmdButton1.Click

  psh.UpdateMousePointer(True)
  System.Threading.Thread.Sleep(1000)

End Sub

The UpdateMousePointer() method takes a Boolean parameter which, if True will show the Wait pointer and if False will show the default pointer.