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

Add an indication of whether a click will result in drag or resize #234

Open
tznind opened this issue Oct 11, 2023 · 2 comments
Open

Add an indication of whether a click will result in drag or resize #234

tznind opened this issue Oct 11, 2023 · 2 comments

Comments

@tznind
Copy link
Collaborator

tznind commented Oct 11, 2023

It would be really helpful if you could change the cursor depending on if it is going resize or move the control. Maybe that isn't possible but that is the main problem I had. That and being able to move my 1x1 labels with the mouse would be good.

We cannot change the mouse but could otherwise indicate somehow (maybe using the bottom right info text area)

@tig
Copy link

tig commented May 21, 2024

I think this will make this super easy for you, once done:

@tznind
Copy link
Collaborator Author

tznind commented May 22, 2024

In principle it sounds like there is overlap with this feature. Some things to note however that would be needed for an integrated solution satisfying both use cases:

TGD supports:

  • resizing and moving things without borders too (e.g. drag resize a TextField)
  • tracking start/end of resize (so that it can be wrapped up in an undoable Operation)
    • Would need Resized and Moved events with start and end values for undo/redo
  • clamp pos and dim that are not PosAbsolute (e.g. if a view is Y = 50% then you can drag it only on X axis)
  • drag move a view into other views e.g. a label into a TabView (and out again).
    • also between containers
    • also TGD has a concept of a view being either a container view or regular (see IsContainerView, GetNearestContainerDesign etc)

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

No branches or pull requests

2 participants