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:32:03
 
 
To
25/03/2000 23:18:29
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00350332
Message ID:
00350484
Views:
23
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform