Sign in Join

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

Mailing lists / lazarus / 2008-04

Registering Custom Components in IDE

8 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Lee Jenkins

Hi all,

I've written a custom button inheriting from TPanel and it works very nicely, but I would like to add it to my palette so I can use it at design time.

If found this:
\ide\components\custom\customidecomps.pas.template

However, there is a note from Mattias saying "THIS IS OBSOLETE". What is the better way?

I thought I had run across something on the wiki about this, but can't seem to find it, at least search for phrases such as "custom component", etc.

Any pointers would be appreciated.

Warm Regards, Lee "Everything I needed to learn in life, I learned selling encyclopedias door to door."

Reply by email

matthew rollings
to Lee Jenkins

Hi,

Just wondering if there is a TFiletreeview similar to how there is in delphi (I think thats what it was called anyway) I've found TFilelistbox as the closest thing to it. I just want something to browse folder tree's and select a folder, currently using the TDirectoryEdit

Thanks in advance.

Matthew Rollings

Reply by email

Mattias Gaertner
to Lee Jenkins: I've written a custom button inheriting from TPanel and it works very nicely, but I would…
Show quoted text 12 lines
Hi all, I've written a custom button inheriting from TPanel and it works very nicely, but I would like to add it to my palette so I can use it at design time. If found this: \ide\components\custom\customidecomps.pas.template However, there is a note from Mattias saying "THIS IS OBSOLETE". What is the better way?

Create a package.

Show quoted text 5 lines
I thought I had run across something on the wiki about this, but can't seem to find it, at least search for phrases such as "custom component", etc. Any pointers would be appreciated.

See here
http://wiki.lazarus.freepascal.org/Lazarus_Packages#Quick_Start

Mattias

Reply by email

Lee Jenkins
to Mattias Gaertner
Mattias Gaertner wrote 22 lines
On Fri, 04 Apr 2008 17:29:53 -0400 Lee Jenkins wrote: > Hi all, > > I've written a custom button inheriting from TPanel and it works very > nicely, but I would like to add it to my palette so I can use it at > design time. > > If found this: > \ide\components\custom\customidecomps.pas.template > > However, there is a note from Mattias saying "THIS IS OBSOLETE". > What is the better way? Create a package. See here http://wiki.lazarus.freepascal.org/Lazarus_Packages#Quick_Start

Thanks very much.

Warm Regards, Lee "Everything I needed to learn in life, I learned selling encyclopedias door to door."

Reply by email

Graeme Geldenhuys
to matthew rollings: Just wondering if there is a TFiletreeview similar to how there is in delphi (I think…
matthew rollings wrote 5 lines
Just wondering if there is a TFiletreeview similar to how there is in delphi (I think thats what it was called anyway) I've found TFilelistbox as the closest thing to it. I just want something to browse folder tree's and select a folder, currently using the TDirectoryEdit

For a directory tree (no files) you can use dirsel.pas in the LCL directory. It's similar to the windows SelectDirectory Treeview dialog, but just cross-platform. (BTW: GTK doesn't have a Select Directory Dialog treeview component like Windows, which is why GTK uses the File Open (yuck) dialog.

I've made local changes to my Lazarus IDE, to use the dirsel.pas unit instead for GTK.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

matthew rollings
to Felipe Monteiro de Carvalho

Yes, I would also be interested in this patch, and to see what changes you made. Thanks for your responces.

Felipe Monteiro de Carvalho wrote 7 lines
On Sun, Apr 6, 2008 at 9:18 AM, Graeme Geldenhuys wrote: > I've made local changes to my Lazarus IDE, to use the dirsel.pas unit > instead for GTK. Maybe you could make a patch for us?

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho: On Sun, Apr 6, 2008 at 9:18 AM, Graeme Geldenhuys Maybe you could make a patch for us?…

On 06/04/2008, Felipe Monteiro de Carvalho > > I've made local changes to my Lazarus IDE, to use the dirsel.pas unit

> instead for GTK. Maybe you could make a patch for us?

I tried at one stage, but couldn't figure out where in the GTK interface to add such code. I tried to step back through the hierarchy, but got lost along the way. :-(

My local changes simply uses the dirsel unit directly in the IDE code, which means all widget sets would end up using the dirsel unit, not just GTK1, which is undesired (Windows could use the SHFolderSelect API instead).

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email