Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-12

Property 'Lazarus' in win32 interface

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Smat
to Martin Smat: in win32 interface is set for every control the property with name 'Lazarus' with…
Micha Nelissen wrote 16 lines
Martin Smat wrote: > in win32 interface is set for every control the property with name > 'Lazarus' with value=address of class instance. It seems that this > property is duplicate with properties 'Control' and 'Wincontrol' which > are set in LCL for all WinControl class. And what more, in win32 > interface is not the property 'Lazarus' used correctly. It is set for > other objects then only HWND (e.g. for HMENU) but such objects cannot > store properties. > I suggest to remove this property and replace all GetProp(hwnd, > 'Lazarus') calls with GetProp(hwnd, 'Wincontrol'). > If other win32 developers will agree, I send a patch. I agree.

Patch attached.

Martin.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: zip00050.zip
Type: application/octet-stream
Size: 1532 bytes
Desc: "win32patch.zip"
Url : http://localhost/pipermail/lazarus/attachments/20031227/db27fe74/zip00050.obj

Reply by email

Martin Smat

Hi,
in win32 interface is set for every control the property with name 'Lazarus' with value=address of class instance. It seems that this property is duplicate with properties 'Control' and 'Wincontrol' which are set in LCL for all WinControl class. And what more, in win32 interface is not the property 'Lazarus' used correctly. It is set for other objects then only HWND (e.g. for HMENU) but such objects cannot store properties.
I suggest to remove this property and replace all GetProp(hwnd, 'Lazarus') calls with GetProp(hwnd, 'Wincontrol'). If other win32 developers will agree, I send a patch.

Martin Smat.

Reply by email

Micha Nelissen
to Martin Smat
Martin Smat wrote 20 lines
Micha Nelissen wrote: > Martin Smat wrote: > >> in win32 interface is set for every control the property with name >> 'Lazarus' with value=address of class instance. It seems that this >> property is duplicate with properties 'Control' and 'Wincontrol' which >> are set in LCL for all WinControl class. And what more, in win32 >> interface is not the property 'Lazarus' used correctly. It is set for >> other objects then only HWND (e.g. for HMENU) but such objects cannot >> store properties. >> I suggest to remove this property and replace all GetProp(hwnd, >> 'Lazarus') calls with GetProp(hwnd, 'Wincontrol'). >> If other win32 developers will agree, I send a patch. > > > > I agree. > Patch attached.

Thanks, applied.

Micha.

Reply by email

Micha Nelissen
to Martin Smat: in win32 interface is set for every control the property with name 'Lazarus' with…
Martin Smat wrote 10 lines
in win32 interface is set for every control the property with name 'Lazarus' with value=address of class instance. It seems that this property is duplicate with properties 'Control' and 'Wincontrol' which are set in LCL for all WinControl class. And what more, in win32 interface is not the property 'Lazarus' used correctly. It is set for other objects then only HWND (e.g. for HMENU) but such objects cannot store properties. I suggest to remove this property and replace all GetProp(hwnd, 'Lazarus') calls with GetProp(hwnd, 'Wincontrol'). If other win32 developers will agree, I send a patch.

I agree.

Micha.

Reply by email