Thanks for that, will use it, in general however Delphi does not know about the Mouse Snap to setting?
Its very useful. (Control panel/mouse/snap to) I always have it turned on - means for instance with a dialogue box the pointer is already on the default answer, so you can just click without moving and looking, most times it's a real time saver. (Except in Delphi) John -----Original Message----- From: Alister Christie [mailto:[EMAIL PROTECTED] Sent: Friday, 26 May 2006 12:58 p.m. To: [EMAIL PROTECTED]; NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Mouse and Hints John Bird wrote: > Q1 - Can I change the hint on the task bar for a minimised > application? Silly me I assumed that setting > Application.Hint:=somestring would do it but it doesn't, still shows > the program name. > Application.Title := somestring; will work but also changes the text in the title bar. > Q2 - I have the Windows mouse option turned on for the mouse to snap > to (move to a default button). It doesn't seem to work for Delphi > however...I have an application I would like to do this - I restore > the Application from minimised, it has an OK button with setfocus, but > the mouse does not jump to it... > > procedure TForm1.FormCreate(Sender: TObject); begin mouse.CursorPos := BitBtn1.ClientToScreen(Point(bitbtn1.width div 2, bitbtn1.height div 2));; end; -- Alister Christie Computers for People Ph: 04 471 1849 Fax: 04 471 1266 http://www.salespartner.co.nz PO Box 13085 Johnsonville Wellington __________ NOD32 1.1461 (20060329) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com _______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
