it is because that is how the form streaming, event and component
hookup mechanism works. The declarations before the visiblity
directives are treated as "published". No, explicitly adding a
"published" section won't work.
On Fri, Sep 17, 2010 at 4:24 PM, John Bird wrote:
> Thanks, I had sort of
Thanks, I had sort of figured it out, but I didn't know the reason.
John
> So before the initial private (or any other) visiblity directive.
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/
TMainForm = class(TForm)
MyLabel: TLabel;
procedure OnEnter(Sender: TObject);
private
public
end;
So before the initial private (or any other) visiblity directive.
On Fri, Sep 17, 2010 at 11:37 AM, John Bird wrote:
> The correct spot being? (that was my question! - there looks to be rules I
The correct spot being? (that was my question! - there looks to be rules I
did not know about. )
Form inheritance - not applicable so much in this case, as the set of labels
and edit boxes vary totally from case to case. I just got tired of the
repetitive task of creating large sets of these
Or Frames for that matter, or custom components.
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington
On 17/09/2010 12:48 p.m., Jeremy North wrote:
> Why not form inheritence?
>
> Are you declaring the events
Hi !
I have an application who does something like your app does.
I guess you should generate the PAS file together DFM, generating
declarations and skeleton implementations of the event's procedures there.
It works for me !!
2010/9/16 John Bird
> I have a source generation program to speed crea
Why not form inheritence?
Are you declaring the events in the correct spot for the form?
BTW, you really want your Label font to be different to the Edit font?
On Fri, Sep 17, 2010 at 10:39 AM, John Bird wrote:
> I have a source generation program to speed creating of sets of labels and
> edit
I have a source generation program to speed creating of sets of labels and
edit boxes on a form - which gives output like examples below.
I paste the code that goes in the DFM onto the form, and it creates all the
components - a neat Delphi trick for those who might not know.
My problem is tha