Recent

Author Topic: [SOLVED] New "category" of controls in the IDE?  (Read 2148 times)

pusuni

  • Jr. Member
  • **
  • Posts: 72
[SOLVED] New "category" of controls in the IDE?
« on: October 03, 2014, 12:19:46 pm »
Hi! Sorry if this message it is not in the correct place, but I don't know  where the right place.

My question is: what does the  source code need   to create a new "category" of controls in the IDE?

For example, in the IDE has Standart, Additional, Common controls,  Dialogs, etc..  I would like to add one,  called XXXX.

http://subefotos.com/ver/?cde4b0d1e683edcce7916b14775f8c28o.jpg

Thanks in advanced
« Last Edit: October 04, 2014, 09:42:56 am by pusuni »

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: New "category" of controls in the IDE?
« Reply #1 on: October 03, 2014, 12:34:27 pm »
It is done via procedure RegisterComponent;.
Code: [Select]
procedure Register;
...
procedure Register;
begin
  {$I ecslider.lrs}
  RegisterComponents('EC-C', [TECSlider]);
end;
This will create new tab "EC-C" with component TECSlider - OR - (if this tab already exists) will only add the component TECSlider there.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

pusuni

  • Jr. Member
  • **
  • Posts: 72
Re: New "category" of controls in the IDE?
« Reply #2 on: October 03, 2014, 01:10:02 pm »
Thanks a lot, Blaazen

 

TinyPortal © 2005-2018