RE: [DUG]: Whats wrong here?

2001-05-24 Thread Mark Derricutt

Also, setting default to Tree will cause the DFM to not include a property 
reference to the property if its True, because its the default, and set in 
Create.

--On Friday, 25 May 2001 4:22 p.m. +1200 "Cooke, Andrew" 
<[EMAIL PROTECTED]> wrote:

> Setting default True is only your promise that you will set FAutoTab :=
> True in the constructor.

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



RE: [DUG]: Whats wrong here?

2001-05-24 Thread Luke Pascoe

ah. :-)

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"



Re: [DUG]: Whats wrong here?

2001-05-24 Thread leigh

In your constructor you need to set FAutoTab to True again. 


-Original Message-
From: Luke Pascoe <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Fri, 25 May 2001 16:02:32 +1200
Subject: [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.
> 
> According to the help text this should work, am I missing something?
> 
> 
>  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. ==
> ---
> 
> 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"



re: [DUG]: Whats wrong here?

2001-05-24 Thread Ben Taylor

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



RE: [DUG]: Whats wrong here?

2001-05-24 Thread Cooke, Andrew

Setting default True is only your promise that you will set FAutoTab := True
in the constructor.
  Andrew.

-Original Message-
From: Luke Pascoe [mailto:[EMAIL PROTECTED]]
Sent: Friday, 25 May 2001 4:03 p.m.
To: Multiple recipients of list delphi
Subject: [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.

According to the help text this should work, am I missing something?


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



Re: [DUG]: Whats wrong here?

2000-03-29 Thread Leigh Wanstead

For this kind of error, I usually rely on compiler automatic point to the
line and my editor color settings to find bug.

Just a suggestion, change default color setting a different one.

Best Regards
Leigh Wanstead

- Original Message -
From: Aaron Scott-Boddendijk <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Wednesday, March 29, 2000 03:11
Subject: Re: [DUG]: Whats wrong here?


> > TTaskList = class(TList);
> >   procedure SaveToFile(FileName: String);
> > end;
> >
> > I want to add the SaveToFile proc to the functionality of TList, but I
get
> > an error saying "IMPLEMENTATION expected but ; found"
> >
> > I haven't had much experience with inheriting components.
>
> Take out the semi-colon after the Class Parent
> I'd also advise assigning a visibility specifier (in this case Public)
>
> TTaskList = class(TList) // No semi-colon here...
> public
>   procedure SaveToFile(const FileName :String);
> end;
>
> --
> Aaron Scott-Boddendijk
> Jump Productions
> (07) 838-3371 Voice
> (07) 838-3372 Fax
>
>
> --
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>   Website: http://www.delphi.org.nz
>

---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz



Re: [DUG]: Whats wrong here?

2000-03-28 Thread Aaron Scott-Boddendijk

> TTaskList = class(TList);
>   procedure SaveToFile(FileName: String);
> end;
> 
> I want to add the SaveToFile proc to the functionality of TList, but I get
> an error saying "IMPLEMENTATION expected but ; found"
> 
> I haven't had much experience with inheriting components.

Take out the semi-colon after the Class Parent
I'd also advise assigning a visibility specifier (in this case Public)

TTaskList = class(TList) // No semi-colon here...
public
  procedure SaveToFile(const FileName :String);
end;

--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax


---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz



Re: [DUG]: Whats wrong here?

2000-03-28 Thread Matthew Comb

leave the ; off after class(TList)

Its like a begin end; type of thing.

Matt.
- Original Message -
From: "Luke Pascoe" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Wednesday, March 29, 2000 2:52 PM
Subject: [DUG]: Whats wrong here?


> TTaskList = class(TList);
>   procedure SaveToFile(FileName: String);
> end;
>
> I want to add the SaveToFile proc to the functionality of TList, but I get
> an error saying "IMPLEMENTATION expected but ; found"
>
> I haven't had much experience with inheriting components.
>
> --
>
> Luke Pascoe
>
> --
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>   Website: http://www.delphi.org.nz
>

---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz



RE: [DUG]: Whats wrong here?

2000-03-28 Thread McKenzie, Paul

Luke,

Try...


Type
TTaskList = class(TList)// No ";"
  procedure SaveToFile(FileName: String);
end;


Regards
Paul McKenzie

Unisys

Phone:  64-04-462 2287
E-mail: [EMAIL PROTECTED]

(Wellington - New Zealand)

CAUTION: This e-mail message and accompanying data may contain
information that is confidential. If you are not the intended recipient you
are notified that all content is to be treated as confidential unless
otherwise specified, and is not to be used, copied or forwarded to third
parties without the prior permission of the author. If you have received
this e-mail message in error please delete it and notify me. Thank you.



-Original Message-
From: Luke Pascoe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 29 March 2000 02:53 PM
To: Multiple recipients of list delphi
Subject: [DUG]: Whats wrong here?


TTaskList = class(TList);
  procedure SaveToFile(FileName: String);
end;

I want to add the SaveToFile proc to the functionality of TList, but I get
an error saying "IMPLEMENTATION expected but ; found"

I haven't had much experience with inheriting components.

--

Luke Pascoe

---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz