Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom Class Derived From Container in a Grid Problem
Message
From
21/08/2000 07:25:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/08/2000 04:02:43
Wouter Schut
Www.Selectif.Nl/Www.Seweso-Systems.Com
Andelst, Netherlands
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00407213
Message ID:
00407230
Views:
28
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform