PRB: First Item of List Box or Combo Box Not Selectable
ID: Q194575
|
The information in this article applies to:
-
Microsoft Visual FoxPro for Windows, version 6.0
SYMPTOMS
You cannot click to select the first item in a list box or combo box when its text is wider than the control and its Itemtip is displayed.
RESOLUTION
Some possible workarounds are:
- Do not use Itemtips.
- Make sure the list box or combo box is as wide as the first item in the
list. Other items in the list can be longer than the width of the
list box or combo box.
- Click on the first item before the Itemtip appears. The problem only
occurs once the Itemtip is displayed.
- Use the arrow keys on the keyboard to arrow up to the first item.
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONSteps to Reproduce Behavior
- Place the following code into a program file and run it:
*** Beginning of code ***
PUBLIC oform1
USE HOME(2)+"data\customer"
oform1=NEWOBJECT("form1")
oform1.Show
RETURN
*
DEFINE CLASS form1 AS form
Top = 0
Left = 15
Height = 289
Width = 232
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
ADD OBJECT list1 AS listbox WITH ;
RowSourceType = 6, ;
RowSource = "customer.company", ;
Height = 169, ;
Left = 24, ;
Top = 24, ;
Width = 84, ;
ItemTips = .T., ;
Name = "List1"
ADD OBJECT text1 AS textbox WITH ;
Height = 25, ;
Left = 12, ;
Top = 216, ;
Width = 192, ;
Name = "Text1"
PROCEDURE list1.Click
Thisform.Text1.Value=This.Value
Thisform.Text1.Refresh
ENDPROC
ENDDEFINE
*** End of code ***
- When running the form, place the mouse pointer over the first item in
the list. Once the Itemtip appears, click on it. Note that the text of
the item does not appear in the text box below.
- Place the mouse pointer over any other item in the list until the
Itemtip appears. Click on it. Note that it appears in the text box
below.
- Workarounds 3 and 4 in the Resolution section above can be tried while
the form is still up. Try clicking on the first item in the list before
the Itemtip appears; it will show up in the text box. Select the second
or third item in the list, use the arrow keys to move to the first item.
Note that it shows up in the text box.
Additional query words:
kbVFP600 kbOOP kbCtrl kbContainer
Keywords :
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbprb
|