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

stdUIElement megathread #112

Open
3 tasks
sancarn opened this issue Sep 5, 2024 · 0 comments
Open
3 tasks

stdUIElement megathread #112

sancarn opened this issue Sep 5, 2024 · 0 comments
Labels
enhancement New feature or request megathread Many bundled feature requests for an individual class

Comments

@sancarn
Copy link
Owner

sancarn commented Sep 5, 2024

TODO

  • Anchors
    • Anchors property
    • FrameDepth property - 0 if top-level element, 1 for each frame the element is within.
    • ResizeElementCollection

Anchors

Often people install a whole class for anchoring. Currently people have to continue doing this, but this should be part of stdUIElement. The basic pattern would be as follows:

Public elements as new Collection
Public Sub UserformInitialize()
  elements.add stdUIElement.CreateFromControl(myTextBox, anchors:=UIElementAnchorAll)
  elements.add stdUIElement.CreateFromControl(OKButton, anchors:=UIElementAnchorBottom or UIElementAnchorRight)
  elements.add stdUIElement.CreateFromControl(CancelButton, anchors:= UIElementAnchorBottom or UIElementAnchorLeft)
End Sub
Public Sub Userform_Resize()
  'Resizes in order of depth
  Call stdUIElement.ResizeElementCollection(elements)
End Sub
@sancarn sancarn added enhancement New feature or request megathread Many bundled feature requests for an individual class labels Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request megathread Many bundled feature requests for an individual class
Projects
None yet
Development

No branches or pull requests

1 participant