[Lazarus] How to query Enabled/Disabled component state?
Graeme Geldenhuys
graemeg.lists at gmail.com
Tue Feb 10 13:54:35 CET 2009
On Tue, Feb 10, 2009 at 2:07 PM, Mattias Gärtner
<nc-gaertnma at netcologne.de> wrote:
>
> Most LCL properties are relative. Left is relative to Parent, Visible hides all
> childs too, etc.
>
> As Michael said: Use CanFocus, which uses IsControlVisible and parent enabled.
> Use IsControlVisible to check whether a control is visible on the form. It
> checks parents and things like multi pages. It does not check whether the
> control is clipped.
> There are almost always exceptions to the rules. It depends on what you want to
> achieve.
OK, thanks.
> Where is a good place to document this?
fpdoc documentation?
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the Lazarus
mailing list