Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox -- Enabled but not accessable
Message
From
31/07/2002 16:32:48
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
ComboBox -- Enabled but not accessable
Miscellaneous
Thread ID:
00684716
Message ID:
00684716
Views:
51
Hi All,

I'm know I'm overlooking something. (VFP 7, SP1, Windows 2000 SP2):

I have a modal form that includes three ComboBox controls. They are initially disabled and have no control source. In the LostFocus of another control I call a method that

1) Sets their ControlSource
2) Sets Enabled to .T.
3) Does an explicit Refresh of each of the three

From the debugger and the command window I can verify the following:

Visible is true
RowSourceType is 5 (array) and each RowSource array is a properly populated (form property) array
Their ControlSource record pointer, a readwrite cursor, is properly positioned
BackColor is white (16777215)
ForeColor is 0 (black)
LockScreen is .F.
Via the command window, as I change the ListIndex the DisplayValue changes

Problem: I cannot access these ComboBoxes from the form and, visually, they appear disabled. That is they appear on the running form in the DisabledForeColor and DisabledBackColor, not the black and white values the debugger and command window report.

Help please! I'm stuck and would really, really appreciate suggestions as to what I am missing. Thanks so much!

Spencer Redfield
Next
Reply
Map
View

Click here to load this message in the networking platform