XBROWSER with SETUP possible?

XBROWSER with SETUP possible?

Postby Horizon » Thu Feb 02, 2023 11:45 am

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?
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: XBROWSER with SETUP possible?

Postby Antonio Linares » Thu Feb 02, 2023 11:51 am

Dear Hakan,

I have just tested your code and here it is working fine

What is missing there ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42120
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: XBROWSER with SETUP possible?

Postby Horizon » Thu Feb 02, 2023 12:07 pm

Hi Antonio,

yes, this code compiled with buildh32 without any error and run. But does not work brwsetup function.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: XBROWSER with SETUP possible?

Postby cnavarro » Thu Feb 02, 2023 3:42 pm

Horizon wrote:Hi Antonio,

yes, this code compiled with buildh32 without any error and run. But does not work brwsetup function.

Your sample work OK for me and execute your SETUP xbrowser function correctly
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: XBROWSER with SETUP possible?

Postby 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
FiveWiDi
 
Posts: 1190
Joined: Mon Oct 10, 2005 2:38 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 57 guests