AAAAaaaaahhhhh. :-)
Thankyou!
========================================================
Luke Pascoe Delphi Programmer
enSynergy Consulting LTD
[EMAIL PROTECTED] +64-9-3551593 fax +64-9-3551590
Level 4, 10-12 Federal St, Auckland, New Zealand
PO Box 32521, Devonport, Auckland 1330, New Zealand
================== I.H.T.F.P. ==========================
> -----Original Message-----
> From: Ben Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 25 May 2001 4:28 p.m.
> To: Multiple recipients of list delphi
> Subject: re: [DUG]: Whats wrong here?
>
>
> > I have a property declared like so:
> > property AutoTab: Boolean read FAutoTab write FAutoTab default True;
> > But when I whack the component on a form, Autotab is false.
>
> my understanding is that the "default True" declaration
> prevents the ui
> streaming the property to .dfm etc when the value is in its default
> state. this apparantly saves a lot of space, speeds form loading etc.
>
> you also need (usually in the .create) to set the actual value.
>
> i usually do something like:
>
> const
> defAutoTab=true;
>
> property AutoTab: Boolean read FAutoTab write FAutoTab default
> defAutoTab;
>
> {in the constuctor}
> FAutoTab:=defAutoTab
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.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"
>
---------------------------------------------------------------------------
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"