Results 1 to 4 of 4

Thread: Veranderen van muiscursor

  1. #1
    John Kuiper
    Join Date
    Apr 2007
    Location
    Almere
    Posts
    8,747

    Veranderen van muiscursor

    Ik probeer de muiscursor aan te passen, zodat gebruikers kunnen zien dat het systeem bezig is. Maar ik zie helemaal geen veranderingen in de muiscursor.
    Ik had verwacht dat application.processmessages de cursor zou omzetten.
    Delphi Code:
    1. OldCursor : TCursor;
    2. begin
    3.     try
    4.       Oldcursor := cursor;
    5.       cursor    := crHourGlass;
    6.       application.ProcessMessages;
    7.       Succes    := Link.SendEMail(Subject);
    8.     finally
    9.       Cursor := OldCursor
    10.     end;
    Delphi 10.1 update 2 / Windows 10
    Delphi is great. Lazarus is more powerfull

  2. #2
    Moet je niet toevallig screen.cursor gebruiken?

  3. #3
    Code:
    Screen.cursor := crHourGlass;
    try
      ...
    finally
      Screen.cursor := crDefault;
    end;

  4. #4
    John Kuiper
    Join Date
    Apr 2007
    Location
    Almere
    Posts
    8,747
    Bedankt. Even een dipje verwerkt ......
    Delphi is great. Lazarus is more powerfull

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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