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:

screen shot

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 when winapi.messages.twmactivate isn't found,
  • procedure cmactivate(var message: tcmactivate); not shown when vcl.controls.tcmactivate isn't found.

solution:

uses   winapi.windows, winapi.messages, system.classes, vcl.controls, vcl.forms,   vcl.graphics; 

enter image description here

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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -