Re. Changing a cursor on a form


2005-05-11 12:15:26 AM
cppbuilder9
Quote
Edward Diener wrote in Article <4280d04a$ XXXX@XXXXX.COM >
with Subject: Changing a cursor on a form, on 10.05.2005 17:16:26


Does changing the cursor on a form take place immediately or is there
something else I have to do to change the cursor ? I want to set a wait
cursor when a user clicks a button on my form at the beginning of the
handler routine, and set it back to the default cursor at the end of the
handler routine. However I notice that the cursor never actually changes.
Hello,
you can use this:
TForm::OnButtonClick()
{
Screen->Cursor = crHourGlass;
//do smoething
Screen->Cursor = crDefault;
}
Regards
Elmar Baumann
------------------------------------------------------------------------------
Indy9 NNTP Internet News Reader/Writer, E. Baumann Software 2005
Portions of this Software are Copyright (c) 1993 - 2005,
Chad Z. Hower (Kudzu) and the Indy Pit Crew
<www.IndyProject.org/>