Setting Tab order fails #2867
-
I am using version 1.14.0 in a PowerShell script. I am struggling to get the tab order to work. From the documentation, I can create this control. $txtDescription = [Terminal.Gui.TextField]@{
X = $lblDescription.Frame.Width + 2
Width = 40
Y = 4
TabIndex = 2
TabStop = $True
CanFocus = $True
} If my first TabIndex is 0, I expect this control to be the third tab stop. But it isn't. In fact, if I create this control in the console as a standalone object, the tab index is 0. PS C:\> $txtDescription | select tab*,can*
TabIndexes TabIndex TabStop CanFocus
---------- -------- ------- --------
{} 0 True True I assume I can assign a value. But it doesn't work, and there are no errors. PS C:\> $txtDescription.TabIndex = 2
PS C:\> $txtDescription.TabIndex
0 Am I missing something regarding setting tab stops? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
The |
Beta Was this translation helpful? Give feedback.
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.
Thank you for your patience.