• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

setting mouse cursors to default in windows NT and Solaris

 
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Program opens a window with a button in the middle. If the button is clicked, the cursor of the window is changed to wait cursor(The cursor is in process) and a modal dialog is popped up. Another button is located in the dialog. If the dialog button is clicked, the cursor of the dialog is changed to wait cursor(The cursir is in process mode) and sleep for 3 seconds. After three seconds, the dialog is closed and the cursor of the main window is hanged to default cursor. The cursor will change back to default cursor if the mouse cursor stays inside the dialog before the dialog is closed. If the mouse cursor moves outside of the dialog, the cursor will not be changed until the mouse cursor moves out of the frame and comes back in. This problem does not happen in Windows NT since the cursor of the frame will not be changed to wait cursor at all.
 
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is not the problem with OS. While changing the Mouse Cursor, you use setCursor() on Component - means you are setting different Mouse Cursor for that particular component only. When mouse enters another component, its cursor will be changed to the cursor set for that component.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic