Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dual grid column dynamic settings
Message
From
10/03/1999 12:50:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00195809
Message ID:
00195951
Views:
17
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform