- If you want to change the row focus, use SetRowFocusIndicator method
(DataWindows) to choose whith kind of focus you want, than use setrow and
selectrow methods and code rowfocuschanged(ing) events.
Regards
BMartins
"Tiziano" <tizian...@nebtech.com> escreveu na mensagem
news:4166669e@forums-1-dub...
"BMartins" <bea...@pred.com.br> ha scritto nel messaggio
news:41669d9f@forums-1-dub...
ls_ret = dw_1.Modify("textbox1.background.color=12632256")
ls_ret = dw_1.Modify("textbox1.background.color=0") // the color is in
number not with rgb in your case use zero.
if ls_ret <> '' then messagebox('Error',ls_ret)
For colunms I use colunm name.
Regards
BMartins
"Tiziano" <tizian...@nebtech.com> escreveu na mensagem
news:4166a9d9@forums-2-dub...
"Tiziano" <tizian...@nebtech.com> a écrit dans le message de news:
4166669e@forums-1-dub...
In the datawindow object Place this code in the expression for the color
property:
if( currentRow(), RGB(0, 255, 255), RGB(255, 255, 255) )
CYAN WHITE
Place this this in the object on the data window you wish to change.
For objects = Text tab, Background Color property.
For DW Band = Select the appropriate band and General tab, color property.
This is easier than palcing it in the event script.
I hope this helps.
Jim
On 11 Oct 2004 01:51:14 -0700,
in sybase.public.powerbuilder.datawindow
Jim Smith
EMail: jrsmith AT duglight DOT com