Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New DFM Editor CnPack #182

Open
luapfr opened this issue Oct 9, 2023 · 3 comments
Open

New DFM Editor CnPack #182

luapfr opened this issue Oct 9, 2023 · 3 comments

Comments

@luapfr
Copy link

luapfr commented Oct 9, 2023

I created this other post #180

However, I believe implementing it in the Delphi editor itself is difficult, not to say impossible.

I believe that creating a new DFM editor will be more interesting than what could be accessed using PopupMenu in DFM
"View as Text CnPack"

PopupMenu DFM Delphi

using SynEdit
"https://github.com/SynEdit/SynEdit/blob/master/Source/SynEditCodeFolding.pas"
It is easy to do code folding and also complete the code
The most difficult thing I see is integrating with Delphi because when you save it you have to detect if there are errors in DFM

Erro Salve DFM

@cnpack
Copy link
Owner

cnpack commented Oct 9, 2023

The key problem is, an "External“ editor is hard, almost impossible, to integrate in Delphi, and let Delphi think it's its editor itself, including code or dfm.

In a word, the Delphi Editor deeply integrated with Delphi itself.

@luapfr
Copy link
Author

luapfr commented Oct 9, 2023

The key problem is, an "External“ editor is hard, almost impossible, to integrate in Delphi, and let Delphi think it's its editor itself, including code or dfm.

In a word, the Delphi Editor deeply integrated with Delphi itself.

I thought that since you can intercept Delphi's AutoComplete in PAS it would also be possible to do the same with DFM

@luapfr
Copy link
Author

luapfr commented Oct 9, 2023

Taking a closer look, I think it wouldn't be complicated for a reason, the DFM will always have the same name as the PAS file and this way, when you click the other mouse button on the DFM and choose the option "View as Text CnPack" it will open the file
The biggest problem is being able to Copile this DFM when saving it and closing this CnPack Editor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants