Max H.
Max H.

Reputation: 11

How can i deny an unit from deactivating Code Insigth in Firemonkey?

I want to import an unit to save ini files with this unit from Github, but, as soon as i import it, code insight stops working - instead of opening itself doesn't even open anymore. It isn't a change in the IDE options, as it works in every unit/project in which i don't use it. So, the line

Uses:  [...], FMX.IniFile;

Seems to deactivate Code Insight. I use Rad Studio 10.3. Is this a known issue or does a solution already exists?

Thanks

Edit: In order to use the file correctly, i need to import the files for android and Apple as well, which are in the same directory as the main FMX.IniFile.Pas, these might cause the problem as well

Upvotes: 0

Views: 129

Answers (1)

MartynA
MartynA

Reputation: 30735

Sorry, I just tried what you describe in your q and code completion continues to work fine.

Here's exactly what I did:

  • Created a new multi-platform application.

  • Saved the default new Form1 unit the IDE creates and the project.

  • Created a new unit and cut and pasted the source of FMX.IniFile into it.

  • Saved the new unit in the project's folder under the name FMX.IniFile.Pas

  • Added FMX.IniFile to Form1's unit's Uses clause.

  • Added a TButton to Form1 and did a Save All

  • Created a `Button1Click' event on Form1.

  • Switched from the form editor to the code editor and, in the Button1Click handler skeleton and started to type

    Self.c

and the IDE immediately offered the various properties of Form1 beginning with c as code-completion possibilities.

I'm using Delphi 10.2.3 on Windows 10 Pro 64-bit.

Upvotes: 2

Related Questions