Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox in grid; Read Only? -why?
Message
 
To
11/09/2002 10:49:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00698969
Message ID:
00699789
Views:
19
>Thanks George,
>
>However I have tried setting the combo box's read only property to .f. in it's gotfocus method but somehow the control is set back to readonly at run time!
>
>I have been unable to find any docoumentation to explain this behaviour.
>
>Still Looking...

Steve,

Actually, I recalled incorrectly about my check box. Here's the actual code in the AddCheckBox method. This method is called when the RecordSource_Assign method is fired.
LPARAMETER tcField, tni

LOCAL locol as Column 
IF VARTYPE(&tcField) = "L"
  locol = EVALUATE("This.Column" + TRANSFORM(tni))
  WITH locol
    .RemoveObject("Text1")
    .AddObject("GridCk1", "GridCk")
    .Gridck1.Visible = .T. && This fixed the problem
    .Sparse = .F.
  ENDWITH
ENDIF
RETURN
As you can see by my comment, even though the check box was visible in the grid, not explicitly setting it ot .T. caused the check box to be read-only,
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform