Selectrow() will highlight the row.
Getrow() will get the last selected row
in the getfocus event of the datawindow use getrow to get the rownumber in
the last datawindow
and use selectrow to highlight that row in the new datawindow.
I usually put code in the rowfocuschanged event. when the row changes, then
row gets highlighted and the row in the other datawindow will be highlighted
also.
--
Dawn Brown Eyes (TeamSybase)
--
Dawn Brown Eyes (TeamSybase)
<Ravipal> wrote in message
news:DA19E09702B09FF300421253852569E1.00421283852569E1@webforums...
string controlName = "rf_rect"
if dw.describe(controlName + ".name") <> "!" then return true
string ls_bg_colour ,ls_mod
long ll_width file://width of band
string bg = string(COLOR_FOCUS)
ls_bg_colour = "'" + bg + "~t if(isselected(), " + string(COLOR_SELECTED) +
"," +bg + ")'"
ll_width = getTotalWidth(dw)
ls_mod = "Create Rectangle(band=detail" + &
" x='0'" +&
" y='0'" +&
" height='80~t if(1=1, RowHeight(), 80)'" +&
" width='" + string(ll_width) + "'" +&
" name=" + controlName +&
" visible='1~t if(currentrow() = getrow(), 1, 0)'" +&
" brush.hatch='6'" + &
" brush.color=" + ls_bg_colour +&
" pen.style='0'" +&
" pen.width='5'" +&
" pen.color='" + string(rgb(255,255,255)) + "'" +&
" background.mode='2'" +&
" background.color='0'" +&
")"
string rc
rc = dw.Modify(ls_mod)
dw.SetPosition(controlName, "detail", FALSE)
<Ravipal> wrote in message
news:DA19E09702B09FF300421253852569E1.00421283852569E1@webforums...
I am sorry? You can select multiple rows with SelectRow() function.
Jakub Janda
S.
--
Simon Caldwell
Get Real Systems Ltd
Holtby Manor, Stamford Bridge Road, York, YO19 5LL
Tel 01904 481999 Fax 01904 481666
Visit us at www.getrealsystems.com
Specialists in e-Procurement and supply chain technology
"Jakub Janda" <Jakub.Janda@empireDOTcz> wrote in message
news:WtgY9w2...@forums.sybase.com...
If I understand well, Ravipal wants to show differently the last line
selected.
SelectRow only offers a blue background for all selected lines.
"Jakub Janda" <Jakub.Janda@empireDOTcz> wrote in message
news:WtgY9w2...@forums.sybase.com...
"Simon Caldwell" <simonDOTcaldwellATgetrealsystemsDOTcom> wrote in message
news:XEU$vA3iA...@forums.sybase.com...