Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What causes dynamicbackcolor behave wrong ?
Message
De
30/12/1999 09:41:13
 
 
À
30/12/1999 09:36:02
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00310261
Message ID:
00310341
Vues:
20
Hmmm....what are you using for YELLOW and WHITE? Are they constants?

Also, I think I use pretty much the same grid as you for a selection grid. I took your class that you posted several months ago and modified it. I'll email it to you and I guess you can see if it solves the problem.

>>>Unfortunately this is part of a framework with a poor debugger I spent quite time with no success yet.
>>>Other then lockscreen what may be causing this dynamicbackcolor expression behave strange :
>>>
this.setall("DynamicBackColor",;
>>> "iif(recno(this.recordsource)=this.nCurRec,YELLOW,WHITE)",;
>>> "Column")
-Grid is on a "child" pageframe, parent is a view, grid is a table.
>>>-When it first shows up all rows are YELLOW.
>>>-When it gets focus everything is normal.
>>>-If I go to just another form and come back again all rows are painted to YELLOW ???
>>>-I already tried overriding "activate" for form and pages.
>>>-The same framework, same class grid behave normally where parent is not a view ???
>>>-In all cases parent's buffering 3 and child grid recsource 5.
>>>TIA
>>>Cetin
>>
>>I have had to solve this before by adding a Grid.Setocus() to strategic places in the form.
>
>
Erik,
>I tried that already :( Also I have a custom method that controls this when outside of grid. This one simply either paints all rows to YELLOW or WHITE ???
>I also verified properties from command window and called methods explicitly from command window to no availability including paint :( Just similar forms with tables instead of view as parent works as they should.
>
>John, code is in grid class init. I also tried explicitly setting it from command window for just one column too :(
>
>The framework is awfull about debugging (IOW no debugging) so it's really hard to track and narrow it.
>Cetin
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform