Sign in Join

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

Mailing lists / lazarus / 1999-12

TCustomControl

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Samuel Liddicott
to Michael A. Hess: GTK is just one API that can be used with the LCL. It is being designed to work with any…
Show quoted text 13 lines
-----Original Message----- From: Michael A. Hess Sent: Friday, December 17, 1999 07:05 AM To: Subject: Re: [lazarus] TCustomControl At this point we have plans to port Fedit2 "FEDIT2 is a full form editor, complete with object inspector and component palette!" This work will most likely be done by Samuel Liddicott one of the original authors of Fedit2.

Yep. I'm very tied up right now but expect to be free after Christmas, probably to co-incide with a working TButton, TEdit, TComboBox, TNotebook, TListBox

Sam

Reply by email

Michael A. Hess
to Osman Sen: Hello ! Well, i can develop components for Win32 in Delphi, but i dont know how to work…
Osman Sen wrote
Well, i can develop components for Win32 in Delphi, but i dont know how to work with GTK.

GTK is just one API that can be used with the LCL. It is being designed to work with any API available. You just need to write the wrapper code. The ability to create additional custom controls will at times be more dependent on the API such as GTK than on the LCL.

I had to port Delphi's "Design Interface Unit" (DsgnIntf.pas) to do that and i think it is illegal.

If it is a direct copy, then it is VERY illegal. Do not attempt to include that code with the LCL. Borland occasionally checks on projects such as Lazarus to make sure that we are not using any of their code.

Show quoted text 5 lines
-> TCustomControl does not support scroll stuff correctly and has refresh problems (with Invalidate method). ->TEdit does not seem to work. ->TCanvas does not have TextRect and drawing with it seems to be a bit slow.

Most of these items are only being developed. If you would like to assist in helping complete them your efforts would be appreciated.

And I wonder what you imagine about Lazarus' object inspector

At this point we have plans to port Fedit2

"FEDIT2 is a full form editor, complete with object inspector and component palette!"

This work will most likely be done by Samuel Liddicott one of the original authors of Fedit2.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Osman Sen

Hello !
Well, i can develop components for Win32 in Delphi, but i dont know how to work with GTK. I see the class TCustomControl exists and i think it can be used to develop custom controls similarly.

I tried to port my TInspector control (an object inspector) and did it partially. I had to port Delphi's "Design Interface Unit" (DsgnIntf.pas) to do that and i think it is illegal. But it seems that some prior problems exist with the subject. Maybe the
source i have (copy of 8.12.99) has only :)
-> TCustomControl does not support scroll stuff correctly and has refresh problems (with Invalidate method).
->TEdit does not seem to work.
->TCanvas does not have TextRect and drawing with it seems to be a bit slow. ...

And I wonder what you imagine about Lazarus' object inspector... Just as Delphi's or else (like seperate dialogs generated with a few parameters or a script for each component).
Or maybe
something with a check could be used for boolean and set properties, a spinedit for integer props.
or any type of control that enables modifying values with an interface:

  TPropEditControl=class  // base class for modifying prop values.
    public
      property PropEdit: TPropertyEditor ...;
        // property that's being edited
      property PropControl: TControl ...;
        // Control to be used for editing,
        //(An Edit,SpinEdit,Checkbox,Combobox or a button for a dialog...)
  end;

and object inspector should use the PropEditControls to edit the properties. There'll be default PropEditControls and anyone will be able to register his/her custom classes... So custom "PropEditControl"s should be coded instead of "PropertyEditor"s. This means a different DsgnIntf unit for Lazarus...
???
I know it's a further subject but imaginations give us motivation :) OK?

Reply by email

Marc Weustink
to Osman Sen

+ From: Osman Sen
+
+ I tried to port my TInspector control (an object inspector) and did it
+ partially. I had to port Delphi's "Design Interface Unit"
+ (DsgnIntf.pas) to do that and i think it is illegal. But it seems that some
+ prior problems exist with the subject. Maybe the
+ source i have (copy of 8.12.99) has only :)

+ -> TCustomControl does not support scroll stuff correctly and

That will be added soon.

+ has refresh problems (with Invalidate method).

This is a known problem. After the editor wil show more than one line this is the next point. Somewhere the paint and clear (?) messages are mixed up.

+ ->TEdit does not seem to work.
+ ->TCanvas does not have TextRect

One feature at the time (it wasn't needed at the moment). Feel free to add it.

+ and drawing with it seems to be a bit slow.

Can't check that. For testing I used a Xwin sever for NT, while runnig/compilng the apps on my 486Dx4/120 Linux
gateway/SMBserver/OracleServer/testbox/... and this combination doen't perform.

Marc

Reply by email