Packages with doted names: Dotted units events not detected right
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
If you use a package with dotted names and properties from undotted units (like TNotifyEvent) this works fine. If you want use a event defined in a dotted unit, only the unit name in front of the dot is taken.
Steps to reproduce:
Try a component in a dotted unit:
unit dot.foo;
...
type
TStringEvent = procedure(var UserInfo:String) of object;
TDotComponent = class(TComponent)
private
FOnBar: TNotifyEvent;
FOnFoo: TStringEvent;
published
property OnBar: TNotifyEvent read FOnBar write FOnBar; // this works
property OnFoo: TStringEvent read FOnFoo write FOnFoo; // this not
end;
Compilable package added.
- install package in ide
- place a TDotComponent (from DotComponents) on a new form
- in Objectinspector.Events create default event for OnBar -> works fine
- in Objectinspector.Events create default event for OnFoo -> see invalid "dot" in uses clause
Additional information:
First reported here: http://www.lazarusforum.de/posting.php?mode=reply&f=19&t=10939
Mantis conversion info:
- Mantis ID: 32247
- OS: Windows
- OS Build: 7
- Build: 55637
- Platform: 64bit
- Version: 1.9 (SVN)
- Fixed in revision: r56028 (#1e16c528)
- Monitored by: » papelhigienico (Fabio Luis Girardi)