Skip to content

stdUIElement megathread #112

@sancarn

Description

@sancarn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmegathreadMany bundled feature requests for an individual class

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions