xbrowse click clause

xbrowse click clause

Postby Marc Vanzegbroeck » Mon Jun 27, 2016 7:42 am

Hi,

I'am convering a LISTBOX into a XBROWSE in my program.

In a listbox I can do:
Code: Select all  Expand view
REDEFINE listbox .... ;
.....
ON CHANGE myfunction() ;
ON CLICK myfunction()
 


In xbrowse I get an compile-error.
I Can only do:
Code: Select all  Expand view
REDEFINE xbrowse  .... ;
.....
ON CHANGE myfunction()



How can I execute a function after someone select that browse, even when it's not changed.
Sometimes there is is only 1 item in the browse, and I can't execute the function by selecting first something else...
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1157
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: xbrowse click clause

Postby Antonio Linares » Mon Jun 27, 2016 8:21 am

Marc,

You can do:

oXbrowse:bLCLicked = { | nRow, nCol, nFlags | MyFunction() }
regards, saludos

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

Re: xbrowse click clause

Postby Marc Vanzegbroeck » Mon Jun 27, 2016 8:46 am

Thank you Antonio, it' s working fine now :D
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1157
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Otto and 44 guests