Tip: Set mouse cursors for your elements
January 28th, 2008 | Published in Google Desktop API
Did you know you can specify the type of mouse cursor to display for an individual element? basicElement has a cursor property that can be set to various cursor types. This can improve the usability of your gadget a great deal when appropriate cursors are used for different elements or program states. For example, you could use the hand cursor for clickable items or the wait cursor when the gadget is busy and is unable to respond.
Say you have a button named submitButton. Here is some code that will update the mouse cursor for the button, depending on the availability of the action.
if (isGadgetBusy()) { |