Browsers/Color

Jenie888

Member
:mouse:

Hey there,

I was curious if there is a way to make a single row in a browser a different color then the rest of the rows? I don't think it is possible, but before I threw the idea out the window I wanted to see if anyone had any ideas on how to impliment this.

Thanks,
Jenie
 
U

Unregistered

Guest
This is possible.

Simple set the style='background-color:<colour>' tag in the cell or row defn.

It should all boil down to setting the tag based on your criteria in Progress.

Hope this helps,
Andrew Fong.
 

mra

Junior???? Member
Hello Jennifer!

Are you talking about WebSpeed or 4GL browse widgets?

If you mean a browse widget, create a "ROW-DISPLAY" trigger and put something like

if SomeCriteria = true then
assign TABLE-NAME.FIELD-NAME:bgcolor in browse {&BROWSE-NAME} = COLOR-1.
else
assign TABLE-NAME.FIELD-NAME:bgcolor in browse {&BROWSE-NAME} = COLOR-2.


Hope it helps!


Regards
Mike :)
 

asereb

New Member
Yes, it's possible to change a color of individual row in
the browse widget, I did it few times.

To do that, try to use row-display event of a browse and
when row-displayed, you can modify attributes of
individual cells in the each column( such as color, font
etc.)


Alex Serebrenik
Programmer/Analyst
Wilson Tools
Saint Paul, MN
 

Jenie888

Member
Thanks!!!

Thanks Everyone for reponding!!!

I will check it out and see if I can get any of the suggestons to work and let you know!

THanks,
Jenifer
 

Jenie888

Member
Opps

:drink:

Hey MRA,

THat was pretty neat, but it only colors a column not an entire row.


My code inside the Row-Display trigger:

DO:
DO WITH FRAME {&FRAME-NAME}:
IF Employee.LName = "Abers" THEN
ASSIGN Employee.LName:BGCOLOR IN BROWSE br-test = 5.
ELSE ASSIGN Employee.LName:BGCOLOR IN BROWSE br-test = 8.
END.
END.

Do I have to assign the color to all the collumns or is it simplier than that?

Thanks!!!
Jenie
 

mra

Junior???? Member
You have to fill each and every column I'm afraid! :blue:

If you want to do it the fancy way, you can loop through the table columns using table and field handles, but if you only have a few columns to paint, this will be to much work. :eek:


Regards

Mike
 
Top