Hmmmm it seems weird but the first thing I've tried when I log on my computer this morning is to run my test app and guess what, the darn control is working correctly. I'm begining to suspect that our cleaners are programming gurus in disguised :)
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dennis Chuah Sent: Wednesday, 5 November 2003 8:11 AM To: Multiple recipients of list delphi Subject: Re: [DUG]: Capturing input focus Message TCustomControl is already a descendent of TWinControl. Haven't had this happen to me before, but check the ControlState property. Also how are you setting the focus to the control. Try using the keyboard (TAB key), or do it in code (SetFocus, ActiveControl). Do you handle the WM_NCHITTEST message and are setting the focus using the mouse? ----- Original Message ----- From: Wes Edwards To: Multiple recipients of list delphi Sent: Wednesday, November 05, 2003 7:37 AM Subject: RE: [DUG]: Capturing input focus Derive from TWinControl (Windows only) or TWidgetControl (cross-platform) to receive focus / keyboard input etc. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allan Vergara Sent: Tuesday, 4 November 2003 2:01 p.m. To: Multiple recipients of list delphi Subject: [DUG]: Capturing input focus Been trying to figure this one out for a while now but still no luck. What I have is a TrackBar control derived from TCustomControl. Within this control I'm trying to trapping the messages WM_SETFOCUS and WM_KILLFOCUS but this little experiment fails because these messages are not being sent to this control (I've also set TabStop to TRUE). I need to trap these messages in order to draw/remove a focusRect on the Thumb (a TGraphicControl control). Thanks in advance. Actual contol: __________________________ Allan D. Vergara Software Engineer Niche Software Ltd. http://www.WorkPace.com --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
