DelphiVCL4Python
DelphiVCL4Python copied to clipboard
Mouse Handling not Supported
I noticed the OnMouseX events in TPaintBox are not handled.
File "frmMain.py", line 21, in init self.PaintBox.OnMouseDown = 1#self.MouseDown AttributeError: Error in setting property OnMouseDown Error: You can only assign a callable to method property "OnMouseDown"
even though the field is present.
I note from
https://en.delphipraxis.net/topic/6011-onmousedownup-events/
which suggests MouseEvents are not yet handled. This seems a bit of an oversight
@hsauro there are some missed events wrappers. Collect as much suggestions as you can and send to us, please. You can also contribute with pull requests. All help is welcome.
I'm not sure how to add the wrappers but I'm happy to provide samples for users to look at.
@hsauro all contributions are welcome. I'd suggest you to have a look at the WrapFmxForm. The "TCloseQueryEventHandler" is a good example in how to create events wrappers. I'd like to receive your pull request :)
I see what I can do in the next few weeks, I'm writing a big report at the moment which is due end of Jan.
Herbert
On Thu, Jan 20, 2022 at 4:22 AM Lucas Moura Belo @.***> wrote:
@hsauro https://github.com/hsauro all contributions are welcome. I'd suggest you to have a look at the WrapFmxForm. The "TCloseQueryEventHandler" is a good example in how to create events wrappers. I'd like to receive your pull request :)
— Reply to this email directly, view it on GitHub https://github.com/Embarcadero/DelphiVCL4Python/issues/8#issuecomment-1017441435, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIBSDWDUZEOU3U555HW4CLUW745RANCNFSM5MBODXYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
-- Herbert Sauro, Professor University of Washington, Bioengineering 206-685-2119, www.sys-bio.org Mobile: 206-880-8093 @.*** Books: http://books.analogmachine.org/
I hope to get it done soon.