XBROWSER with SETUP possible?

Post Reply
Horizon
Posts: 1327
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 5 times

XBROWSER with SETUP possible?

Post by Horizon »

Hi,

I have changed mr. rao's example like this. but does not run properly.

Code: Select all | Expand

#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
User avatar
Antonio Linares
Site Admin
Posts: 42595
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 38 times
Been thanked: 86 times
Contact:

Re: XBROWSER with SETUP possible?

Post by Antonio Linares »

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
Horizon
Posts: 1327
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 5 times

Re: XBROWSER with SETUP possible?

Post by Horizon »

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
User avatar
cnavarro
Posts: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: XBROWSER with SETUP possible?

Post by cnavarro »

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
FiveWiDi
Posts: 1243
Joined: Mon Oct 10, 2005 2:38 pm
Has thanked: 4 times
Been thanked: 4 times

Re: XBROWSER with SETUP possible?

Post by FiveWiDi »

Horizon wrote:Hi,

I have changed mr. rao's example like this. but does not run properly.

Code: Select all | Expand

#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

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
Post Reply