FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DblClick on xbrowse column's bitmap
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
DblClick on xbrowse column's bitmap
Posted: Wed Jun 29, 2011 01:11 AM

Hola,

are there the way to define a dblclick codeblock to the xbrowse column's bitmap,
some thing like oBrw:aCols[1]:aBitmaps[1,1]:bLDblClick := {...} this not work because we don't have the bitmap object only the handle, or are there the possibility to have the object from handle?

saludos

Marcelo

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: DblClick on xbrowse column's bitmap
Posted: Wed Jun 29, 2011 03:35 AM

As of now, there is no inbuilt functionality.
However the programmer can implement this functionality on his own.

Column object provides double click functionality.
oCol:bLDClickData := { |nRow, nCol, nFlags, oCol| MyFunction( nRow, nCol, nFlags, oCol ) }

function MyFunction( nRow, nCol, nFlags, oCol )

if nCol - oCol:nDisplayPos <= <bitmapwidth >
<action for clicking on bitmap>
else
<not clicked on bitmap>
endif
return nil

Regards



G. N. Rao.

Hyderabad, India
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: DblClick on xbrowse column's bitmap
Posted: Thu Jun 30, 2011 02:12 AM

Thanks very much Mr. Rao

Regards

Marcelo

Continue the discussion