Sign in Join

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

Mailing lists / lazarus / 1999-10

mwEdit issues

8 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Shane Miller

I solved this issue by adding
{$H+} in the begginning of the file.
Why does this fix the issue?

Shane

>> "Shane Miller" 10/20/99 02:07PM >>>

Question.
In mwCustomEdit, in the class definition for TMWEditList, it defines a procedure (protected) called PUT that has an override declaration. In Delphi, this compiles fine, but under Linux, I get: Erro: There is no method in an ancestor class to be overridded: TMWEDITLIST.PUT

TMWEditList is derived from TStringList and TStringList does NOT contain a PUT method.

Why does it work in Delphi, but not in Linux. Why does it work in Delphi at all?

Shane

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

TStringList has a PUT in Delphi? Not that I see... If I go to the help for TStringList and look at the methods alphabeticaly I don't see a PUT.

Shane

>> "mariano podesta" 10/20/99 02:48PM >>>

yes, in delphi TStringList has a Put method.

Earlier message 32 lines
-----Original Message----- From: Shane Miller Sent: Mi�rcoles 20 de Octubre (10) de 1999 16:15 To: Subject: Re: [lazarus] mwEdit issues Question. In mwCustomEdit, in the class definition for TMWEditList, it defines a procedure (protected) called PUT that has an override declaration. In Delphi, this compiles fine, but under Linux, I get: Erro: There is no method in an ancestor class to be overridded: TMWEDITLIST.PUT TMWEditList is derived from TStringList and TStringList does NOT contain a PUT method. Why does it work in Delphi, but not in Linux. Why does it work in Delphi at all? Shane _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

Question.
In mwCustomEdit, in the class definition for TMWEditList, it defines a procedure (protected) called PUT that has an override declaration. In Delphi, this compiles fine, but under Linux, I get: Erro: There is no method in an ancestor class to be overridded: TMWEDITLIST.PUT

TMWEditList is derived from TStringList and TStringList does NOT contain a PUT method.

Why does it work in Delphi, but not in Linux. Why does it work in Delphi at all?

Shane

Reply by email

mariano podesta
to Shane Miller

yes, in delphi TStringList has a Put method.

Earlier message 27 lines
-----Original Message----- From: Shane Miller Sent: Mi�rcoles 20 de Octubre (10) de 1999 16:15 To: Subject: Re: [lazarus] mwEdit issues Question. In mwCustomEdit, in the class definition for TMWEditList, it defines a procedure (protected) called PUT that has an override declaration. In Delphi, this compiles fine, but under Linux, I get: Erro: There is no method in an ancestor class to be overridded: TMWEDITLIST.PUT TMWEditList is derived from TStringList and TStringList does NOT contain a PUT method. Why does it work in Delphi, but not in Linux. Why does it work in Delphi at all? Shane _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

Yikes, I found a stumbling block.

Our TMenus is a child of the class TWinControl. That's not right because we need to "use" Menus in controls.pp and Menus.pp needs to use COntrols.pp. That would be a circular reference.

Looks like we need to inherit from TComponent and basicaly rewrite a lot of the code that's alreay in TControl like the setcaption, getcaption, etc.

Any volunteers to convert that over? I need it done in a day or two.......

Shane

Reply by email

Peter Vreman
to Shane Miller: I solved this issue by adding {$H+} in the begginning of the file. Why does this fix the…
you wrote
I solved this issue by adding {$H+} in the begginning of the file. Why does this fix the issue?

Delphi IDE has H+ by default.

Peter

Show quoted text 29 lines
Shane >>> "Shane Miller" 10/20/99 02:07PM >>> Question. In mwCustomEdit, in the class definition for TMWEditList, it defines a procedure (protected) called PUT that has an override declaration. In Delphi, this compiles fine, but under Linux, I get: Erro: There is no method in an ancestor class to be overridded: TMWEDITLIST.PUT TMWEditList is derived from TStringList and TStringList does NOT contain a PUT method. Why does it work in Delphi, but not in Linux. Why does it work in Delphi at all? Shane _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Peter

Reply by email

mariano podesta
to Shane Miller: TStringList has a PUT in Delphi? Not that I see... If I go to the help for TStringList…

and search 'TStringList.Put'
help file is not complete at all!

mariano

Earlier message 55 lines
-----Original Message----- From: Shane Miller Sent: Mi�rcoles 20 de Octubre (10) de 1999 17:18 To: Subject: RE: [lazarus] mwEdit issues TStringList has a PUT in Delphi? Not that I see... If I go to the help for TStringList and look at the methods alphabeticaly I don't see a PUT. Shane >>> "mariano podesta" 10/20/99 02:48PM >>> yes, in delphi TStringList has a Put method. -----Original Message----- From: Shane Miller Sent: Mi�rcoles 20 de Octubre (10) de 1999 16:15 To: Subject: Re: [lazarus] mwEdit issues Question. In mwCustomEdit, in the class definition for TMWEditList, it defines a procedure (protected) called PUT that has an override declaration. In Delphi, this compiles fine, but under Linux, I get: Erro: There is no method in an ancestor class to be overridded: TMWEDITLIST.PUT TMWEditList is derived from TStringList and TStringList does NOT contain a PUT method. Why does it work in Delphi, but not in Linux. Why does it work in Delphi at all? Shane _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

Another issue with mwedit is that it DOES use some winapi calls such as regopenkeyex.

We can get around these with defines, but just keep that in mind. So far all I've done is added a define called MWE_FPC and bypassed the api calls.

Shane

Reply by email