简体   繁体   中英

How to add a “unit only” item to “New” menu/object repository in Delphi

I've seen numerous examples of how to add a form wizard to the Delphi Object Repository (for instance, in the TeeChart source), but I want to add the equivalent of the "New Unit" but just with content that I generate. In other words, I can't figure out how to JUST create a unit without creating a form with it. I am currently trying to do this via OTA in Delphi XE via the IOTAModuleCreator, but it wants a form ancestor. Is there a different interface I should use, is there someplace I can just pass a nil to avoid the form, or is this not even something that can be done?

Per what Sir Rufo said, this indeed did exactly as I was looking for:

https://github.com/VSoftTechnologies/DUnitX/blob/f-d10-seattle/Expert/DUnitX.Expert.NewUnitWizard.pas

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM