Recent

Author Topic: Add form or frame to dialog "File" => "New ..."  (Read 3555 times)

SirTwist

  • New Member
  • *
  • Posts: 20
Add form or frame to dialog "File" => "New ..."
« on: August 19, 2018, 08:06:11 pm »
Hi,

I want to add a custom form or frame to the dialog, where you can choose what kind of new file you want to create. Usually you have an treeview with "Module" (with Unit, Form, Data Module, ...), "Inherited item",  "Project" and so on.

I found the wiki entry "Extending the IDE", which says, one have to call FormEditingHook.RegisterDesignerBaseClass. I tried this, created a new form within my package, called this function from the Register procedure, installed the package und recompiled Lazarus. But nothing showed up.

Does any one has a hint, or knows a solution? Google didn't helped. Thanks in advance.

Kind regards,
Sir Twist

taazz

  • Hero Member
  • *****
  • Posts: 5365
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

SirTwist

  • New Member
  • *
  • Posts: 20
Re: Add form or frame to dialog "File" => "New ..."
« Reply #2 on: August 19, 2018, 08:55:29 pm »
Thanks, but in the quoted source they are using
Code: [Select]
  RegisterCustomModule(TGLSceneForm, TCustomModule);
and neither I nor Google can find RegisterCustomModule in FP / Lazarus.

taazz

  • Hero Member
  • *****
  • Posts: 5365
Re: Add form or frame to dialog "File" => "New ..."
« Reply #3 on: August 19, 2018, 09:03:14 pm »
Thanks, but in the quoted source they are using
Code: [Select]
  RegisterCustomModule(TGLSceneForm, TCustomModule);
and neither I nor Google can find RegisterCustomModule in FP / Lazarus.
sorry wrong link this is for lcl https://sourceforge.net/p/glscene/code/HEAD/tree/branches/GLSceneLCL/Source/DesignTime/GLSceneFormDesign.pas
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018