delphi - Code-completion doesn't list message handlers -
when working on old project in delphi xe2, code-completion window pops after ctrl-space not list message handlers delphi 7 did:
in screen shot above, wm***
routines missing. why that?
the unit names in uses clause not qualified. include namespace each unit , necessary types method declarations found let code-completion pop-up window return members.
for instance:
procedure wmactivate(var message: twmactivate);
not shown whenwinapi.messages.twmactivate
isn't found,procedure cmactivate(var message: tcmactivate);
not shown whenvcl.controls.tcmactivate
isn't found.
solution:
uses winapi.windows, winapi.messages, system.classes, vcl.controls, vcl.forms, vcl.graphics;
exactly why is, not dare explain. since other methods (not being message handlers) shown whether concerning unit qualified or not. not matter; when working in delphi 2009 or above, should accustomed use qualified unit names nevertheless.
Comments
Post a Comment