Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Columnwidth of a grid
Message
De
06/12/2001 09:29:30
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/12/2001 09:17:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00590438
Message ID:
00590497
Vues:
23
>Thank you!
>
>That worked perfectly!
>Only one more question... (if tht's okay)
>
>I display my records from my cursor in my grid. Now I would like to double click on a grid row. Popup a new screen and display all the fields of the specific record hat I have double clicked. Is there an easy way?
>
>Thanx!
>Ron :o)

There are multiple ways but I don't know which one is considered easy :)

If you're doing this for a specific grid with predefined columns (like the one you just fixed), this one is easy :

-Select your grid in designer
-Go to command window and open any code window (ie: modi comm dummy - will not save)
-Code :
lcCode = "this.parent.parent.dblclick"
aselobj(arrObj)
for each oCol in arrObj[1].Columns
 oCol.Text1.WriteMethod('DblClick',lcCode) && Assuming all default text1
endfor
-Select code block, right click and 'execute selection'
-Now go to grid.dblclick and code what you want

PS: Check FoxyClasses (LocatorGrid5 sample or MoverListXX) for a similar implementation:)
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform