The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
Hi
Show quoted text 5 lines
Nop. This appears in a popup windows, like an exception.
Or see <lazarusdir>/components/custom/README.
Thanks

Mailing lists / lazarus / 2003-01
19 messages · 5 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
Hi
Nop. This appears in a popup windows, like an exception.
Or see <lazarusdir>/components/custom/README.
Thanks
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
here is an easy installation guide for single user under linux with cvs:
- download and install fpc 1.0.7 rpm from the lazarus site
- Create a directory (e.g. /home/name/freepascal) and cd to it.
- download the fpc sources:
export
cvs login
password is 'cvs' without the ''
cvs -z3 co -r FIXES_1_0_0 fpc
- download the lazarus sources:
cvs -z3 co lazarus
- compile lazarus:
cd lazarus
make
- start lazarus
./lazarus
- Set Environment -> Environment Options -> Files -> FPC Source directory to /home/name/freepascal/fpc
Mattias
Hi!!! Ok, I see... Version of the FPC??? I have FPC 1.0.7 and lazarus 0.8.5a Thanks Bruno…
version 1.0.7 (soon 1.0.8) will not compile it. version 1.1 (the main development branch) may compile it.
Michael.
Hi!!
I'm new in lazarus, but I know Delphi and Kylix, I like to contribute with you in this project that I see is really cool.
But I have a little problem, I download the cvs source, then I compile and works fine, I can add as many as I whant the components to the form, but when I double click to make an event or method, the Lazarus give me an error with the folowing text:
The component editor of class "TDEFAULTCOMPONENTEDITOR" has created the error "Unable to find method. Plz fix errors in source"
What can I do, I don't know what can I do to solve the problem...
And othe thing, in Kylix and Delphi I have VCL components:
1.- Can I compile and use this components with Lazarus. 2.- Can I make new components to Lazarus
3.- How can I do that.
Like I told you, I want to participate with you in this project.
Regards
Bruno Chavez
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
Maybe you added the lcl directory to your 'Other unit files'. Open the Compiler options, clear the search paths and use the '...' buttons to the right of the search paths to add the templates.
Are you trying to compile a Delphi application? The lazarus IDE setups all these things automatically, if you create a new application.
I installed the FPC via RPM the 1.0.6 version.
1.0.7 and its sources are required for lazarus. see lazarus or fpc website for download.
Mattias
The database stuff is in the FCL, which is part of the FPC compiler. It _may_ compile…
Hi!!!
Ok, I see...
Version of the FPC???
I have FPC 1.0.7 and lazarus 0.8.5a
Thanks
Bruno Chavez
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
Hi!!
I recompiled the lazarus, and reinstall the FPC 1.0.6 with the sources... then return to the same problem...
All works fine, I can add component's to the form, but when I want to create an event (Double click) it tell me that "don't found the SysUtils unit'... I don't know what happen, because all the units are in the same dir, and the environment is by default...
Thanks
Bruno Chavez
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
I'm sorry. There was a bug for new, unsaved applications. I fixed that. It should work now.
that's so extrange because compile ok...
If you create a new project, the compilation will be done in the temporary directory, till you save the project.
Mattias
Hi!!! Sorry, I'm trying to adapt with the lazarus, I'm reading all the source code to…
The database stuff is in the FCL, which is part of the FPC compiler.
Are there any component already working with lazarus??? Do you know if the Indy for kylix components work in lazarus???
It _may_ compile with version 1.1, because it needs threads, and version 1.0 does not support threads. You will also need Libc from the kylix sources.
Michael.
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but you can check the archives.
Your other questions:
>1.- Can I compile and use this components with Lazarus.
Yes in most cases if they are straight VCL without windows API calls, there is a good chance they will compile.
>2.- Can I make new components to Lazarus - Sure. Feel free. >3.- How can I do that. - Same as you do in Delphi. Then when you want
top add them to your Lazarus you need to add them to the idecomp.pp file. Look at the source of this file for other examples on how to add the components to the IDE's component bar.
Hope this helps
Shane
Yes. And the type of error is shown in the message window. I have changed the message, so it should be more clear.
Mattias
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
Hi!!!
Sorry, I'm trying to adapt with the lazarus, I'm reading all the source code to understand it...
I saw in the idecomp.pp a section to the Database and interbase....
Are there any component already working with lazarus???
Do you know if the Indy for kylix components work in lazarus???
Thanks
Bruno Chavez
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
This is the output in the terminal, I hope this can help
The only thing I do is... Insert a button... compile and run, close, give double click to the button...
Gdk-WARNING **: locale not supported by C library
NOTE: editor options config file not found
Note: miscellaneous options file not found - using defaults Note: codetools config file not found - using defaults TMainIDE.DoNewProject A
TMainIDE.DoNewEditorFile A NewFilename=
TPascalParserTool.BuildTree B OnlyIntf=FALSE project1.lpr [TCustomFormEditor.CreateComponent] Class='TFORM'
TPascalParserTool.BuildTree B OnlyIntf=FALSE project1.lpr TMainIDE.DoNewEditorFile end unit1.pas
TMainIDE.DoNewProject end 0
************************************************************ MouseDownOnControl Form1:TForm1 No Shift down, No CTRL down [TDesigner.MouseDownOnControl] END
************************************************************ MouseUpOnControl Form1:TForm1
[TCustomFormEditor.CreateComponent] Class='TBUTTON' opInsert
Parent is 'Form1'
TPascalParserTool.BuildTree B OnlyIntf=TRUE unit1.pas TPascalParserTool.BuildTree B OnlyIntf=TRUE unit1.pas TPascalParserTool.BuildTree B OnlyIntf=FALSE unit1.pas NEW COMPONENT ADDED: Form.ComponentCount=1
NewCI.Control.Owner.Name=Form1
[TDesigner.MouseLeftUpOnControl] END
[TMainIDE.DoRunProject] A
TMainIDE.DoSaveProject A SaveAs=FALSE SaveToTestDir=TRUE TPascalParserTool.BuildTree B OnlyIntf=FALSE unit1.pas TMainIDE.DoSaveProject End
[TCompiler.Compile] CmdLine="/usr/bin/ppc386 -Rintel -S2cgi -CD -Ch8000000 -OG1p1 -Tlinux -gl -XD -vewnhi -l
-Fu/home/bruno/freepascal/lazarus/lcl/units
-Fu/home/bruno/freepascal/lazarus/lcl/units/gtk
/home/bruno/proyectos/project1.lpr"
TOutputFilter: "Hint: Start of reading config file /etc/fpc.cfg" TOutputFilter: "Hint: End of reading config file /etc/fpc.cfg" TOutputFilter: "Free Pascal Compiler version 1.0.7 [2002/09/21] for i386"
TOutputFilter: "Copyright (c) 1993-2002 by Florian Klaempfl" TOutputFilter: "Target OS: Linux for i386"
TOutputFilter: "Compiling /home/bruno/proyectos/project1.lpr" TOutputFilter: "Compiling unit1.pas"
TOutputFilter: "Assembling unit1"
TOutputFilter: "Assembling project1"
TOutputFilter: "Linking /home/bruno/proyectos/project1" TOutputFilter: "51 Lines compiled, 2.2 sec"
[TCompiler.Compile] end
EXECUTING "/home/bruno/proyectos/project1"
WorkingDir "/home/bruno/proyectos/"
[TMainIDE.DoRunProject] END
************************************************************ MouseDownOnControl Button1:TBUTTON No Shift down, No CTRL down [TDesigner.MouseDownOnControl] END
************************************************************ MouseUpOnControl Button1:TBUTTON
[TDesigner.MouseLeftUpOnControl] END
************************************************************ MouseDownOnControl Button1:TBUTTON No Shift down, No CTRL down [TDesigner.MouseDownOnControl] END
************************************************************ MouseUpOnControl Button1:TBUTTON
TDesigner.InvokeComponentEditor A Button1:TBUTTON
TDesigner.InvokeComponentEditor B TDEFAULTCOMPONENTEDITOR ### TMethodPropertyEditor.Edit A OldValue=
### TMethodPropertyEditor.Edit B FormMethodName=Button1CLICK ### TMethodPropertyEditor.SetValue A OldValue="" NewValue=Button1CLICK [TEventsCodeTool.PublishedMethodExists] A UpperClassName=TFORM1 TPascalParserTool.BuildTree B OnlyIntf=TRUE unit1.pas [TEventsCodeTool.PublishedMethodExists] B TRUE
### TCodeToolManager.HandleException: "unit not found: Buttons" at Line=8 Col=70 in "unit1.pas"
TDesigner.InvokeComponentEditor ERROR: Unable to find method. Plz fix the error shown in the message window.
[TDesigner.MouseLeftUpOnControl] END
Thanks
Bruno Chavez
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
Yep, you'r right, If put a button, and save all, the and give the double click to the button, it works fine...
Do you have some VCL (Sorry I don't know what's the name in lazarus) for comunication?? like Ping, HTTP, etc??? and for databases????
Thanks for your help...
Bruno Chavez
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
It can't find the file buttons.pp.
Check
Run->Compiler Options->Search Paths->Other Sources for
$(LazarusDir)/lcl;$(LazarusDir)/lcl/interfaces/$(LCLWidgetType)
The FPC source path can be set via:
Environment -> General Options -> Files -> FPC source path
Mattias
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
Yep, you'r right, and I see the FAQ, and tell me that install and compile again the Lazarus, but I already do that, and still with the same error, and in the message window tell me that the button unit doesn't found
Do you know why????
Thanks
Bruno Chavez
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
Hi!!
I have now a bigger problem, because in the IDE of lazarus are correctly configured the paths (I think so), but now it doesn't find the interface unit, I don't know if the problem is for the FPC or the Lazarus..
I installed the FPC via RPM the 1.0.6 version.
Thanks...
Bruno
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
Hi again... sorry!!!
I made exactly what you told me...
I create a new form, and insert a simple button, compile ok, and run ok...
I double click the button to create an event...:
Don't find the button unit
that's so extrange because compile ok...
Thanks
Bruno Chavez
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but…
The TDefaultComponentEditor error occurred here already. I'm not sure of the answer but you can check the archives.
The source error is shown in the messages window.
If this is something like 'unit not found' check the FAQ.
Or see <lazarusdir>/components/custom/README.
Mattias