Skip to content

Mouse Handling not Supported #8

Open
@hsauro

Description

@hsauro

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

Activity

lmbelo

lmbelo commented on Jan 16, 2022

@lmbelo
Member

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

self-assigned this
on Jan 16, 2022
hsauro

hsauro commented on Jan 20, 2022

@hsauro
Author

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

lmbelo

lmbelo commented on Jan 20, 2022

@lmbelo
Member

@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

hsauro commented on Jan 20, 2022

@hsauro
Author
lmbelo

lmbelo commented on Jan 20, 2022

@lmbelo
Member

I hope to get it done soon.

shaunroselt

shaunroselt commented on Mar 6, 2023

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @hsauro@shaunroselt@lmbelo

      Issue actions

        Mouse Handling not Supported · Issue #8 · Embarcadero/DelphiVCL4Python