Re: ActiveControl: how to use it?



Am Sun, 28 Aug 2005 11:29:50 +1200 schrieb Nicholas Sherlock:

> helmut woess wrote:
>> i am working with D7 pro on XP and want to check the actual focused object.
>> So i tried it with ActiveControl, but ActiveControl is always nil. Why?
>
> Form1.activecontrol is always nil? That sounds odd. What control are you
> expecting to have the focus (TEdit/etc..?)?
>
> Cheers,
> Nicholas Sherlock

Yes, but now i know where the problem is. It's because i use a nice
component from LMD called LMDFormDisplay. All Items in such a FormDisplay
gives ActiveControl = nil. Fields outside this FormDisplay are okay.

bye,
Helmut
.


Quantcast