Hi Andreas,
The code below in the Clicked event put a static text st_1 on the clicked column :
st_1.X = dw_1.X + Integer(dw_1.Describe(dwo.name + ".x")) - Integer(Describe("datawindow.horizontalscrollposition"))
st_1.width = Integer(dw_1.Describe(dwo.name + ".width"))
long firstrow
integer li_rowheight, li_Header_height, li_border
li_Header_height= Integer(dw_1.Object.Datawindow.Header.Height)
li_rowheight = Integer(dw_1.Object.Datawindow.Detail.Height)
firstrow = Long(dw_1.Object.DataWindow.FirstRowOnPage)
li_border = PixelsToUnits( GetSystemMetrics (5), YPixelsToUnits!)
if dw_1.border then li_border += PixelsToUnits( GetSystemMetrics (5), YPixelsToUnits!)
st_1.Y = dw_1.Y + li_Header_height + (row - firstrow ) * li_rowheight + integer (dw_1.Describe(dwo.name + ".Y")) + li_border
st_1.height = Integer(dw_1.Describe(dwo.name + ".height"))
//GetSystemMetrics is an external fuction defined as this :
//Function integer GetSystemMetrics ( int nIndex ) Library "user32.dll"
You may have some overlay problem when using some Border Syles for the DW.
You need to increase li_border using GetSystemMetrics
Hope this helps.
Abdallah.