by FiveWiDi » Thu Feb 02, 2023 5:50 pm
Horizon wrote:Hi,
I have changed mr. rao's example like this. but does not run properly.
- Code: Select all Expand view RUN
#include "fivewin.ch"
function Main()
local aData := { { "ONE ", 2000 }, { "TWO ", -5000 }, { "THREE", 2000 } }
XBROWSER aData SETUP BrwSetup( oBrw )
return nil
static function BrwSetup( oBrw )
oBrw:nMarqueeStyle := 5
oBrw:bLDblClick := {|nRow, nCol, nFlags|Dummy(oBrw,2)}
return nil
Function Dummy(obrw, nnn)
? "here"
return
Should I use traditional method xbrowse?
Try this:
- Code: Select all Expand view RUN
function Main()
local aData := { { "ONE ", 2000 }, { "TWO ", -5000 }, { "THREE", 2000 } }
XBROWSER aData SETUP ( oBrw:nMarqueeStyle := 5, oBrw:bLDblClick := {|nRow, nCol, nFlags|Dummy(oBrw,2)} )
return nil
Function Dummy(obrw, nnn)
? "here"
return
But if Antonio and Cristobal say your code work ok ...
Try delete de .EXE, .C, .OBJ files before compiling
Un Saludo
Carlos G.
FiveWin 24.02 + Harbour 3.2.0dev (r2403071241), BCC 7.7 Windows 10