> 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"

Reply via email to