With "Search form files", Grep searches only the .dfm with the same name as the unit (or .nfm / .xfm), unless the IDE has the form open:
{$IFDEF} gets only one of them searched.fmx forms are not looked for; the fallback for them is commented out in TGrepSearchRunner.SearchFormForFile and was never tested