Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone understand events when clicking outside a grid?
Message
 
 
To
01/10/1998 02:32:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00141362
Message ID:
00143193
Views:
31
>>a related question. lets say have row level valiation. identify a rowchange (via you mdow, and keypress logic) in beforerowcolumnchange (brcc). if rowchange then do validations and nodefault. will that work for clicking off the grid? does nodefault in the brcc keep focus from shifting outside the grid, or must i put that logic in grid.valid and return .f.?
>>
>>brenda

>brcc by itself also doesn't prevent going off the grid. Again valid must support staying in grid. Strange but reality :( To keep you fast on track, today I'll try to email, a sample (not really sample - from an on going project) form using 5 grids, 4 are dragdropgrid class which is a subclass of supergrid. Especially check supergrid code (liked the name :) ). Also in its valid notice the setting recsource = "" then setting back. Try to rem it out and you'll see why (my hair count halved till finding it). There I didn't put field level validation code at all (grdvalidate code) 'cause I don't myself use column level valid but rowlevel (yeah a selfcentric class). Feedbacks are appreciated.
>Cetin

another related question (sort of). have logic in my toolbar save button to make sure the lastcontrol.valid is fired. now realized that i also need to do brcc. so i have alittle peice of code in the save "if this.lastcontrol.parent.name ="COLUMN", "return = this.lastcontrol.parent.parent.valid". this will execute the grid.valid. in my grid.valid i execute the grid.column.text.valid and then i do the logic in brcc for record level validation.

i stole the brcc logic to determine if there was a row change from you. if starts by "if mdown()". this does not seem to be true if clicked on toolbar. realize could set a switch to say, yes this is a rowchange in my toolbar, but would like to avoid that.

any thoughts?

brenda

ps: thanks for the grid class. will lookat it as soon as possible.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform