Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NO outline on a non-selectable GRID column????
Message
From
25/03/2000 23:41:08
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00350332
Message ID:
00350486
Views:
22
Ed...

The header doesn't have an ENABLE method. I tried setting the column and the text1 to .F. on the enabled.
Now when the column highlights, because the default background is grey, the highlight for the disabled
column (record) turns outlined in blue, white background and dim text. I still get control though even though
I can't change anything. Have no idea where the focus is, obviously NOT the gotfocus event. I even tried
disabling (commenting out) the RETURN .F. in the text1 WHEN method to see if that had anything to do with
it... it does the same thing.


>>Ed
>>
>>I have the RETURN .F. in the WHEN method for the text1 in column 1. (There is no WHEN method in Column1
>>by itself.). I also tried adding a thisform.grdTally.Column2.SetFocus in the GOTFOCUS method (and tried
>>the CLICK method) of column1. The first time I clicked in column1, it jumped correctly to column 2... BUT... the
>>second time I clicked in column 1, it highlighted and stayed in column1. Interesting... WHY?
>>
>
>I have no idea, unless somehow it is in the header and not the textbox itself; since the When prevents the textbox from receving focus, and something has to have received focus, maybe your column's header object has it. Is there some other control in the column as well that might be receving focus?
>
>I'd try setting the Enabled properties for column, header and textbox .F. as well, since if disabled, a control can't receive or respond to user input.
>
>>
>>>>I have a column that has a WHEN method that returns a .F. This works fine for preventing a
>>>>user from TABBING or ENTERING into that column.... BUT, it does not prevent them from clicking
>>>>in the column. When they do, an outline appears around the column even though they can't key
>>>>anything. Is there a way to prevent the outline as well? I just want the column for descriptive
>>>>labeling only for each line of the grid.
>>>>
>>>
>>>Add code to thE GotFocus() so that if the When is violated, it issues a SetFocus() for another column, perhaps. Youy migth also try adding a When to the TextBox, since its When is being fired to see if the click into the TextBox is OK.
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform