Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Class Derived From Container in a Grid Problem
Message
De
21/08/2000 07:25:22
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
21/08/2000 04:02:43
Wouter Schut
Www.Selectif.Nl/Www.Seweso-Systems.Com
Andelst, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00407213
Message ID:
00407230
Vues:
30
>It seems like all the controls are all the same, they get the same
>value. My custom control works fine outside a grid but inside all the methods are called only once per column and not per row!
>
>Does anyone know what to do??
>
>Thankz


Woter,
It's a well known weirdness of grid :( You can workaround with a cheat (except ActiveX controls - I don't have an idea about how to make them work correctly). Use any Dynamic* property to force an evaluation per every visible row. Sample :
*Container is in column2 of thisform.myGrid
* Column2 DynamicBackColor is set to 'thisform.myCheat()'
*Form.myCheat custom method
* Do any processing here ie: for a timetable mimic
thisform.myGrid.Column2.myContainer.myShape.Width = ;
   thisform.CalcWidth(myTable.myMinutes) 
return thisform.myGrid.Column2.Backcolor
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