>>Hi Cyrus,
>>try (untestet)
>>
>>SET COLOR OF SCHEME 1 TO GR+/B, RB+/R, G/R+
>>DEFINE WINDOW browse2 IN DESKTOP FROM 1, 1 TO 25, 100 COLOR SCHEME 1
>>BROWSE COLOR SCHEME 1 NAME oBrowse_1 WINDOW browse2
>>oBrowse_1.BACKCOLOR = GETCOLOR()
>>oBrowse_1.Column1.BACKCOLOR = GETCOLOR()
>>*etc
>>
>
>There's also the browse ... name oGrid, which is the shorthand for getting an object reference to the grid (which browse command will create with default PEMs anyway). After that, we can do whatever we want with oGrid - set the dynamic properties of its columns, set its colors, bindevents() to any of the grid's events or proeprties... without having to actually design a grid.
Hi Dragan,
I have no dev machine here
is there a difference between
BROWSE COLOR SCHEME 1 NAME oBrowse_1 WINDOW browse2
and
BROWSE COLOR SCHEME 1 NAME oGrid
except the namw of the var and that the window is not defined before BROWSE * ?
Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]