Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse Handling not Supported #8

Open
hsauro opened this issue Jan 15, 2022 · 6 comments
Open

Mouse Handling not Supported #8

hsauro opened this issue Jan 15, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@hsauro
Copy link

hsauro commented Jan 15, 2022

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

@lmbelo
Copy link
Member

lmbelo commented Jan 16, 2022

@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.

@lmbelo lmbelo self-assigned this Jan 16, 2022
@lmbelo lmbelo added the enhancement New feature or request label Jan 16, 2022
@hsauro
Copy link
Author

hsauro commented Jan 20, 2022

I'm not sure how to add the wrappers but I'm happy to provide samples for users to look at.

@lmbelo
Copy link
Member

lmbelo commented Jan 20, 2022

@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 :)

@hsauro
Copy link
Author

hsauro commented Jan 20, 2022 via email

@lmbelo
Copy link
Member

lmbelo commented Jan 20, 2022

I hope to get it done soon.

@shaunroselt
Copy link
Contributor

WrapFmxForm

Could you link directly to the WrapFmxForm file, please? I'd like to see this also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants