Skip to content

Setting Tab order fails #2867

Closed Answered by jdhitsolutions
jdhitsolutions asked this question in Q&A
Discussion options

You must be logged in to vote

Finally worked this out. I realized I had to add the window to the top, which I'm assuming is what creates the SuperView.

This code sets the tab order I was after.

    $controls.foreach({ $window.Add($_) })

    [Terminal.Gui.Application]::Top.Add($window)
    #set tab order
    $txtTaskName.TabIndex = 0
    $dropCategory.TabIndex = 1
    $txtDescription.TabIndex = 2
    $txtDays.TabIndex = 3
    $radioGrp.TabIndex = 4
    $chkWhatIf.TabIndex = 5
    $btnAdd.TabIndex = 6
    $btnSet.TabIndex = 7
    $btnComplete.TabIndex = 8
    $btnRemove.TabIndex = 9

Thank you for your patience.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jdhitsolutions
Comment options

@BDisp
Comment options

BDisp Sep 25, 2023
Collaborator

@jdhitsolutions
Comment options

@jdhitsolutions
Comment options

Answer selected by jdhitsolutions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants