Hello
Is there any way to know which column (header was clicked by the User)
Example of clicking the header "fantasy" would be number 3
thank you all friend
#include "FiveWin.ch"
function Main()
local oBrowser
USE "clients"
XBROWSER "clients" SETUP ( oBrowser := oBrw,;
AEval( oBrw:aCols, { | o | o:bLClickHeader := { | nMRow, nMCol | MsgInfo( oBrowser:MouseColPos( nMCol ) ) } } ) )
return nil
#include "FiveWin.ch"
function Main()
local oBrowser, oColumn
USE "clients"
XBROWSER "clients" SETUP ( oBrowser := oBrw,;
AEval( oBrw:aCols, { | o | o:bLClickHeader := { | nMRow, nMCol, nFlags, oCol | ;
oColumn := oCol, MsgInfo( AScan( oBrowser:aCols, { | o | o == oColumn } ) ) } } ) )
return nil
To know the column number when created.
oBrw:bLClickHeaders := { |r,c,f,oCol| MsgInfo( oCol:nCreationOrder ) }
To know the present position in the visible columns ( position in oBrw:aCols )
oBrw:bLClickHeaders := { |r,c,f,oCol| MsgInfo( oCol:nPos ) }
#include "FiveWin.ch"
function Main()
USE "clients"
XBROWSER "clients" SETUP oBrw:bLClickHeaders := { |r,c,f,oCol| MsgInfo( oCol:nCreationOrder ) }
return nil
#include "FiveWin.ch"
function Main()
USE "clients"
XBROWSER "clients" SETUP oBrw:bLClickHeaders := { |r,c,f,oCol| MsgInfo( oCol:nPos ) }
return nil
oCol := oDBx_Fornecedor:AddCol()
oCol:bStrData := { || forneced->FANTASIA }
oCol:cHeader := "Fantasia"
oCol:cFooter := " "
oCol:nDataStrAlign := AL_LEFT
oCol:nHeadStrAlign := AL_LEFT
oCol:bLClickHeader := {|r,c,f,o| ( oDBx_Fornecedor:cFilterFld := 'FANTASIA', PROCURA_FORNECED_SQL(cOrder,'FANTASIA',oDBx_Fornecedor:MouseColPos( c ) ) )}
oCol:cSortOrder := 'FANTASIA'
#include "FiveWin.ch"
function Main()
local oBrowser
USE "clients"
XBROWSER "clients" SETUP ( oBrowser := oBrw,;
AEval( oBrw:aCols, { | o | o:bLClickHeader := { | nMRow, nMCol | MsgInfo( oBrowser:MouseColPos( nMCol ) ) } } ) )
return nil
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 39 guests