Paul,
 
This may not be what you want but it may interest you. I did this in Turbo 8
but should work in 9.
 
I have a form with a scrolling region. It shows 3 rows at a time but will
work with 5 rows in the region.
The form shows the current record count displayed as you move through the
rows.
 
I gave the scrolling region a component id of   Sho_Box 
 
The form also has a DB Navigator and a static text with a component id of
RecInfo.
I set the properties of the scrolling region to have the same color for
background and foreground (teal)
 
In the form click
 
Tables
Add/Remove Tables
Table Settings
On Row Entry
Custom
 
Here is the code:
CLEAR VAR vRecordCount, vRecNo, vRecInfo
SET VAR vRecordCount TEXT = NULL
SET VAR vRecNo TEXT = NULL
SET VAR vRecInfo TEXT = NULL
GETPROPERTY TABLE 'prodfeat->RECORDCOUNT' vRecordCount
GETPROPERTY TABLE 'ProdFeat->RECNO' vRecNo
SET VAR vRecInfo = (' Record'&.vRecNo&'of'&.vRecordCount)
PROPERTY RecInfo CAPTION .vRecInfo
CLEAR VAR vRecordCount, vRecNo, vRecInfo
if vqtyinstock = 5 the
property sh_box selectedcolor 'red'
else
property sh_box selectedcolor 'teal'
endi
RETURN
 
When I run the form and when I reach a row where the qtyinStock=5 the
selected row backgroung color changes to red, leaving the other rows
background color of teal.
 
Now I know you wanted any of the 5 rows to show the same color at the same
time but I cannot yet figure that out. Maybe this would give you a
direction.
 
 
Bill
 

  _____  

From: [email protected] [mailto:[email protected]] On Behalf Of Paul Buckley
Sent: Tuesday, December 29, 2009 5:24 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Sending this Again - Scrolling Region Brain Lock



I didn't get any feedback on this and I could really a "push" in a different
direction.  Any ideas would be greatly appreciated.

 

I've tried & tried on this one and I'm sure I'm missing an incredibly
obvious solution.  I've got a scrolling region that displays 5 rows of
product information.  I need this to be a scrolling region because part of
what is displayed is a DBImage of the product.  I'd like to be able to
"highlight" certain rows that match specific criteria.  I have both an
integer & text field I can check for the condition.  The best I have been
able to do is get a check box to print that is either checked or not.  I'd
really like to be able to highlight this in a way that is more visible.

 

I'm working with the holiday/latest release of eXtreme 9.0.

 

If anyone has any suggestions, I would really appreciate it.

 

Thanks in advance,

Paul Buckley 

 

Reply via email to