Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update on grid click problem
Message
De
19/08/1998 10:08:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
18/08/1998 18:32:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00127937
Message ID:
00128118
Vues:
31
>Taking Jim's advice and working with a simple test form, I was able to get the action of clicking on the grid to produce a total in a textbox elsewhere on the form. What I did was the following:
>
>in the grid1.column4.textbox click event
>thisform.grid1.click()
>
>in the grid1.click event
>** sum all with a certain category to thisform.textbox1.value
>
>That way, when I clicked on the grid (in the proper column, of course, I only did it for one column) it would cause a sum of all items with the same category as what I clicked on to come up.
>
>I tried basically the same thing with the multiselect grid (except the update code is in the refresh of the form). I put code in the grid1.column4.textbox.click that said "thisform.refresh". That should kick off the refresh method of the form, right? It didn't. I put a set step on right above where I'd said thisform.refresh. Still no help. No refreshing, no stepping, no nothing but regular multiselect grid operation.
>
>I'm out of ideas.... anyone else have any? Thanks.
>
>Denise Duggan
Hi Denise,
This problem directly addresses me you know :) We'll get it the way you want and enhance the class. Meanwhile for information about what's going on with the "class" :
All default grid textboxes and headers are replaced with multiselgrdtxtbox and mymselheader classes. You have code in textboxes that never come into action (you never click on them but multiselgrdtxtbox). The only untouched place is grid.click but unfortunately it fires if you click where no columns or record rows exist (ie:rec mark area as Jim said, right of grid after the last column, when last row visible at some place under it etc so in practice you could say there is nowhere to click directly grid). My current workarounds are to include :
this.parent.parent.click in multiselgrdtxtbox.click and call click of default textbox (default textboxes not removed now I wanted to say but to support on the fly source change and still maintain a good column format I had to - working on it to keep the functionality and still support the manually added code - wow I think I just found the solution, I'll let you know CU).
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform