Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid.. problem with setting focus on a column
Message
From
26/03/2000 09:10:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/03/2000 23:15:47
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00350479
Message ID:
00350520
Views:
23
>I have a 3 column grid, all text boxes. The first column is a descriptive that will not be changed
>by the user. The second and third column will. I have set the .WHEN method on the first column
>to RETURN .F. to prevent access. The drawback, is you can still click in the column and hit
>highlights. It was recommended that I put a SETFOCUS call to the second column in the
>GOTFOCUS method of the first column (or the CLICK method). I put...
>thisform.grdTally.Column2.SetFocus.
>
>The first time I click in column , the cursor and highlight immediately jumps to column 2. BUT the
>second time I click in column 1, the cursor stays in column 1, WHY?
>
>Thanks


Peter,
You could control mouse click position in BRCC of grid and have a nodefault. But since it seems that your all columns fit in grid (no horizontal scrolling) an easier way is to place a transparent shape in front of column 1.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform