Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2021-10

Component compilation problem with lazarus 2.2

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Howard Page-Clark
to Gabriele Cappelletto
Gabriele Cappelletto wrote 27 lines
Sorry, I also allocate the complete file Hello to all, This code compiles with lazarus 2.0.12 constructor TExtTabPanel.Create(AOwner : TComponent); begin {$IFDEF LCL} ᅵᅵ PageClass := TExtPanel_Tab; {$ENDIF} ᅵ inherited Create(AOwner); ᅵ Disabled := False; ᅵ Hidden := False; end;ᅵ but with lazarus 2.2 it gives me the following error: *extp_design_ctrls.pas(1247,4) Error: Identifier not found "PageClass"* How do I resolve?

Remove the {$ifdef}...{$endif} altogether.

The reference to "PageClass" is presumably some leftover from earlier code. It is not needed.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20211001/4b4097a3/attachment.html>

Reply by email

Bo Berglund
to Gabriele Cappelletto

On Thu, 18 Nov 2021 10:59:32 +0100, Gabriele Cappelletto via lazarus wrote:

Could you please STOP posting HTML-only messages to this mail list? They are completely unreadable and ALL your posts seem to look like this...

Show quoted text 76 lines
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <p>I think I have solved it, at least I think</p> <p><br> </p> <div class="moz-cite-prefix">Il 18/11/21 10:08, Gabriele Cappelletto via lazarus ha scritto:<br> </div> <blockquote type="cite" cite="mid:"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <p>Without the PageClass line: = TExtPanel_Tab; not working, how do you port in lazarus 2.2?</p> <p>Thank<br> </p> <div class="moz-cite-prefix">Il 01/10/21 18:19, Howard Page-Clark via lazarus ha scritto:<br> </div> <blockquote type="cite" cite="mid:"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <div class="moz-cite-prefix">On 01/10/2021 16:32, Gabriele Cappelletto via lazarus wrote:<br> </div> <blockquote type="cite" cite="mid:"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <p><br> </p> <p>Sorry, I also allocate the complete file<br> </p> <p><br> </p> <p>Hello to all,<br> </p> <p>This code compiles with lazarus 2.0.12<br> </p> <p>constructor TExtTabPanel.Create(AOwner : TComponent);<br> begin<br> {$IFDEF LCL}<br> ᅵᅵ PageClass := TExtPanel_Tab;<br> {$ENDIF}<br> ᅵ inherited Create(AOwner);<br> ᅵ Disabled := False;<br> ᅵ Hidden := False;<br> end;ᅵ <br> </p> <p><br> </p> <p>but with lazarus 2.2 it gives me the following error:<br> </p> <p><b>extp_design_ctrls.pas(1247,4) Error: Identifier not found "PageClass"</b><br> </p> <p>How do I resolve?<br> </p> <br> <fieldset class="mimeAttachmentHeader"></fieldset> </blockquote> <p>Remove the {$ifdef}...{$endif} altogether.</p> <p>The reference to "PageClass" is presumably some leftover from earlier code. It is not needed.<br> </p> <br> <fieldset class="mimeAttachmentHeader"></fieldset> </blockquote> <br> <fieldset class="mimeAttachmentHeader"></fieldset> </blockquote> </body> </html>
Bo Berglund Developer in Sweden

Reply by email

Gabriele Cappelletto
to Bo Berglund

excuse me. hope this format is correct

Il 19/11/2021 08:22, Bo Berglund via lazarus ha scritto:

Show quoted text 83 lines
On Thu, 18 Nov 2021 10:59:32 +0100, Gabriele Cappelletto via lazarus wrote: Could you please STOP posting HTML-only messages to this mail list? They are completely unreadable and ALL your posts seem to look like this... > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > </head> > <body> > <p>I think I have solved it, at least I think</p> > <p><br> > </p> > <div class="moz-cite-prefix">Il 18/11/21 10:08, Gabriele Cappelletto > via lazarus ha scritto:<br> > </div> > <blockquote type="cite" > cite="mid:"> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > <p>Without the PageClass line: = TExtPanel_Tab; not working, how > do you port in lazarus 2.2?</p> > <p>Thank<br> > </p> > <div class="moz-cite-prefix">Il 01/10/21 18:19, Howard Page-Clark > via lazarus ha scritto:<br> > </div> > <blockquote type="cite" > cite="mid:"> > <meta http-equiv="Content-Type" content="text/html; > charset=UTF-8"> > <div class="moz-cite-prefix">On 01/10/2021 16:32, Gabriele > Cappelletto via lazarus wrote:<br> > </div> > <blockquote type="cite" > cite="mid:"> > <meta http-equiv="content-type" content="text/html; > charset=UTF-8"> > <p><br> > </p> > <p>Sorry, I also allocate the complete file<br> > </p> > <p><br> > </p> > <p>Hello to all,<br> > </p> > <p>This code compiles with lazarus 2.0.12<br> > </p> > <p>constructor TExtTabPanel.Create(AOwner : TComponent);<br> > begin<br> > {$IFDEF LCL}<br> > ᅵᅵ PageClass := TExtPanel_Tab;<br> > {$ENDIF}<br> > ᅵ inherited Create(AOwner);<br> > ᅵ Disabled := False;<br> > ᅵ Hidden := False;<br> > end;ᅵ <br> > </p> > <p><br> > </p> > <p>but with lazarus 2.2 it gives me the following error:<br> > </p> > <p><b>extp_design_ctrls.pas(1247,4) Error: Identifier not > found "PageClass"</b><br> > </p> > <p>How do I resolve?<br> > </p> > <br> > <fieldset class="mimeAttachmentHeader"></fieldset> > </blockquote> > <p>Remove the {$ifdef}...{$endif} altogether.</p> > <p>The reference to "PageClass" is presumably some leftover from > earlier code. It is not needed.<br> > </p> > <br> > <fieldset class="mimeAttachmentHeader"></fieldset> > </blockquote> > <br> > <fieldset class="mimeAttachmentHeader"></fieldset> > </blockquote> > </body> > </html>

Reply by email