ScottBolton
12-08-2005, 11:16 AM
I've having some problems with tags for some userform objects.
This code (should) read a line of text from a file (passed from a LISP expression) and if it equals "insert" then the "Insert" optionbutton should be given focus. This does happen but the black dot in the button isn't visible, just the outline around the text.
Sub BTnorthpointopen()
Dim Northpoint As String
Dim FileNumber As Integer
FileNumber = FreeFile
Open "D:\dclinput.tmp" For Input As #FileNumber
Line Input #FileNumber, Northpoint
Close #FileNumber
If Northpoint = "insert" Then
BTnorthpointscreen.Insert.Value = True
Else
BTnorthpointscreen.Insert.Value = True
End If
BTnorthpointscreen.Show
End Sub
I've also played around with:
BTnorthpointscreen.Insert.TabIndex = 0
BTnorthpointscreen.Rotate.TabIndex = 1
but no joy.
And there's more!
I can't get a label to have a tabstop despite changing the flag to True and giving it a tab index. The flag is changed back to False when I display the form.
Any clues?
S
This code (should) read a line of text from a file (passed from a LISP expression) and if it equals "insert" then the "Insert" optionbutton should be given focus. This does happen but the black dot in the button isn't visible, just the outline around the text.
Sub BTnorthpointopen()
Dim Northpoint As String
Dim FileNumber As Integer
FileNumber = FreeFile
Open "D:\dclinput.tmp" For Input As #FileNumber
Line Input #FileNumber, Northpoint
Close #FileNumber
If Northpoint = "insert" Then
BTnorthpointscreen.Insert.Value = True
Else
BTnorthpointscreen.Insert.Value = True
End If
BTnorthpointscreen.Show
End Sub
I've also played around with:
BTnorthpointscreen.Insert.TabIndex = 0
BTnorthpointscreen.Rotate.TabIndex = 1
but no joy.
And there's more!
I can't get a label to have a tabstop despite changing the flag to True and giving it a tab index. The flag is changed back to False when I display the form.
Any clues?
S