Hi, all !
Is it possible to show tooltip when you hover the mouse over the header selector column ?
Natter wrote:I asked about the record selector column
function TestTip()
local oDlg, oFont, oBrw
USE CUSTOMER
DEFINE DIALOG oDlg SIZE 600,500 PIXEL
@ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;
DATASOURCE "CUSTOMER" AUTOCOLS ;
CELL LINES NOBORDER
oBrw:bToolTips := ;
{ | oBrw,r,c,f,oMouseCol,nMouseRow| MyColToolTip( oBrw,r,c,f,oMouseCol,nMouseRow ) }
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
return nil
//----------------------------------------------------------
Function MyColToolTip( oBrw, r, c, f, oMouseCol, nMouseRow )
local uBm, uVal
if nMouseRow != oBrw:nRowSel
uBm := oBrw:BookMark
Eval( oBrw:bSkip, nMouseRow - oBrw:nRowSel )
uVal := oMouseCol:Value
oBrw:BookMark := uBm
else
uVal := oMouseCol:Value
endif
return cValToChar( uVal )
I do not understand and here a click on the button Iin ribbonbar and and tooltip on the row selector column in xbrowse ?
[code]#include "FiveWin.ch"
function Test()
USE CUSTOMER
DEFINE DIALOG oDlg SIZE 600,500 PIXEL
@ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;
DATASOURCE "CUSTOMER" AUTOCOLS ;
CELL LINES NOBORDER
oBrw:bToolTips := ;
{ | oBrw,r,c,f,oMouseCol,nMouseRow| MojColToolTip( oBrw,r,c,f,oMouseCol,nMouseRow ) }
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
return nil
//----------------------------------------------------------
Function MojColToolTip( oBrw, r, c, f, oMouseCol, nMouseRow )
local uBm, uVal
if nMouseRow != oBrw:nRowSel
uBm := oBrw:BookMark
Eval( oBrw:bSkip, nMouseRow - oBrw:nRowSel )
uVal := oMouseCol:Value
oBrw:BookMark := uBm
else
uVal := oMouseCol:Value
endif
return cValToChar( uVal )
return nil [/code]
oBrw:bToolTips := ;
{ | oBrw,r,c,f,oMouseCol,nMouseRow| MojColToolTip( oBrw,r,c,f,oMouseCol,nMouseRow ) }
oBrw:bCellToolTips := { |o| o:Value }
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 72 guests