Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dual grid column dynamic settings
Message
De
10/03/1999 12:50:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00195809
Message ID:
00195951
Vues:
18
>>Bruce,
>>Combine expressions into one via a UDF and set dyn* to UDF() ? ie:
* Grid.custombkcolor
>>lparameters someparam
>>do case
>> case blahblah
>>   return rgb(...)
>>endcase
Cetin
>
>Hi Cetin -- Let me try to describe this better. What I'm trying to do is have both different backcolors show at the same time, based on independent conditions. So for example, grid row 2 will have fixed blue backcolor while display data is on record #2, but scrolling will be the user default selected highlight colors.
>
>For example, row #2 is now blue, and form data shows record #2 details. At exactly the same time, row #4 is red, the user default selectedbackcolor, and the grid is on record #4. Then user presses down arrow, and row #5 becomes red, but row #2 is still blue.
* grid has two custom properties initialized to 0
* Grid.init
this.setall("DynamicBackColor", ;
  "iif(recno(this.recordsource) = this.customactiverec,"+;
  "rgb(0,0,255),"+;
  "iif(recno(this.recordsource) = this.customcurrec,"+;
  "rgb(255,0,0),rgb(255,255,255)))","Column")
* Grid.BRCC
LPARAMETERS nColIndex
thisform.LockScreen = .T.
*grid.arcc
LPARAMETERS nColIndex
this.customcurrec = recno(this.recordsource)
thisform.LockScreen = .F.
*Grid.when
this.customactiverec = recno(this.recordsource)
this.customcurrec = recno(this.recordsource)
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