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

Drag a form without a border, #84

Closed
239573049 opened this issue May 29, 2023 · 7 comments
Closed

Drag a form without a border, #84

239573049 opened this issue May 29, 2023 · 7 comments
Labels
All OS enhancement New feature or request help wanted Extra attention is needed

Comments

@239573049
Copy link

When I use no border, I can't use the same method to drag the form as winform! Is there the same implementation method?

@239573049
Copy link
Author

No I have solved the border drag, refer to my blog address: https://blog.tokengo.top/blog? id=6f27751e-10ad-4370-8d4e-78a68363f30d, but I've got a new problem, solved but badly, how to drag the form to change its size! I think this is a very basic feature! Whether there is the same demand!

@ottodobretsberger ottodobretsberger added enhancement New feature or request help wanted Extra attention is needed All OS labels Jun 1, 2023
@ottodobretsberger
Copy link
Contributor

Technically, the best way to approach this would be to reserve some narrow invisible space along each edge with a rectangle that intercepts the drag events and calls the corresponding window move/resize function. (also minimize/maximize/close if you want)
That way all functionality would be handled by the client window, and wouldn't go through any web functionality.
However, this would need to be implemented for all three OS, if this were to be a default feature for Photino.
It seems like with some time this could be implemented fairly straightforward, so I have labeled this with "Help Wanted".

Alternatively, albeit possibly somewhat jerky, an HTML control overlay could intercept these calls, and pass them through to the window.

@239573049
Copy link
Author

I did it, but it was too bad to use.
There will be delays or faults

@239573049
Copy link
Author

These should be basic features for no border, is there a better solution!

@Andersen27
Copy link

@ottodobretsberger
Copy link
Contributor

Thank you for implementing this. We will take a look and potentially add this functionality to Photino's upcoming release after review.

@MikeYeager
Copy link
Collaborator

The best solution for this appears to be solving it within Photino.Native (C++ code). See tryphotino/photino.NET#80. Closing this as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
All OS enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants