Code completion suggestions #180
Replies: 5 comments 3 replies
-
Screencast.from.2026-04-15.03-11-17.mp4Well it's too late/early to think too much but here's what I have so far. A diff(at the end) of the changes needed to fpgui and a new unit. I have some plans with the "host" interface but maybe it's not needed. |
Beta Was this translation helpful? Give feedback.
-
|
For extra fun, I added some keywords and TObject stuff to the list of words. Obviously this is incorrect, but for testing it already makes a difference. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I haven't looked at the code you supplied in your second post yet. I'll do so tonight. |
Beta Was this translation helpful? Give feedback.
-
I haven't looked much at your code either yet 🤣 I'm curious now to see how your pasrc code works. I've been working on parsing ppudump output and looking up types with it and followed many rabbit holes myself. I think I spent like 4 days fixing bugs. I've created a monster. |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've had some free time lately and started writing a couple things and thought I would write here before I write much more code in case I'm duplicating something you are already working on.
I started working on a suggestion widget. It's split into three parts.
TfpgSuggestionBox - a popup window
TfpgSuggestionAdapterBase- data backend
IfpgSuggestionRenderer - renderer currently just uses a canvas with rect information.
I'm making it as generic as possible so that it can be used with any program, but with Maximus primarily in mind.
I have planned, but not implemented yet, a description window that can accompany the suggestion window to give more details on the current suggestion candidate. (Some HTML widget would be awesome)
I'm working on a TStrings based adapter and renderer at the moment to iron out the process to see how it can work. It's currently drawing ugly rows that aren't sorted from a static list of strings. Typing doesn't filter the remaining items yet etc.
There's lots of things I haven't implemented yet. It's like the facade of a proof of concept at the moment.
Also, I've done some work on loading ppu files into objects to lookup symbols via ppudump as json. Thinking to combine that with suggestions within the scope. It's not searchable yet. Just objects that can be loaded automatically using jsonrtti.
Anyway, that's the story. Let me know if I should continue.
Regards,
Andrew Haines
Beta Was this translation helpful? Give feedback.
All reactions