Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2003
    Posts
    2,427

    Cursor won't hide until Timer

    I'm trying to hide the cursor as soon as my app (a slideshow) runs. I rely on e_Key being >0 to exit.

    It all works except that the only place I can get setCursor to work is in the timer event, so I have to wait for the event to fire before my cursor is hidden.

    I've tried the page preload and show and also the on enter event of both the image objects I have on the page - they fully cover my page and cross fade.

    Is there anything else I can try?

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    Thanks to WORM once again for the solution, just in case it's of use to anyone else -

    function HideCursor()
    result = DLL.CallFunction(_SystemFolder.."\\User32.dll", "ShowCursor", "0", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
    end

    function ShowCursor()
    result = DLL.CallFunction(_SystemFolder.."\\User32.dll", "ShowCursor", "0", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
    end
    Action in preload - HideCursor();

  3. #3
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Actually, I got a little to careless with Cut and Paste

    The functions should be this:
    Code:
    function HideCursor()
    result = DLL.CallFunction(_SystemFolder.."\\User32.dll", "ShowCursor", "0", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
    end
    
    function ShowCursor()
    result = DLL.CallFunction(_SystemFolder.."\\User32.dll", "ShowCursor", "1", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
    end

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    Ahhh.. that's why it wouldn't come back - although it didn't matter for my purposes -

Similar Threads

  1. Using Timer Events
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-22-2003, 02:14 PM
  2. Replies: 14
    Last Post: 06-24-2003, 04:21 AM
  3. Hide object problems
    By yoni in forum AutoPlay Media Studio 4.0
    Replies: 4
    Last Post: 06-15-2003, 07:41 AM
  4. I need a Flash Timer
    By TJ_Tigger in forum AutoPlay Media Studio 4.0
    Replies: 14
    Last Post: 06-05-2003, 07:32 AM
  5. HOWTO: "Hide" Externally Referenced Files
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 03:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts