errror on :bCellToolTip

errror on :bCellToolTip

Postby Silvio.Falconi » Tue Jul 10, 2018 10:37 am

I have an error on :bCellToolTip when the final user move the mouse on a cell where is not the bitmap
Please the picture pls
Image

it happened when I move the mouse on 31 June or 31 september ( these day not exist)

I have this code

Code: Select all  Expand view
@ 05,05 XBROWSE oBrw SIZE 470, 90 PIXEL OF oDlg ;
      ARRAY aRes[ 1 ] AUTOCOLS LINES CELL NOBORDER

   oBrw:aCols[ 1 ]:cHeader    := 'Mese'

   for n := 2 to 32
      WITH OBJECT oBrw:aCols[ n ]
         :nWidth     := 24
         :cHeader    := LTrim( Str( n - 1 ) )
         :SetCheck( { 'c:\work\fwh\bitmaps\level2.bmp', 'c:\work\fwh\bitmaps\level1.bmp' } )
        :bCellToolTip := { |oCol| oCol:cHeader + " " + oBrw:aRow[ 1 ] + CRLF + If( oCol:Value,"Occupato","Libero" ) }
            END
   next
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: errror on :bCellToolTip

Postby Silvio.Falconi » Tue Jul 10, 2018 11:32 am

Itry to modify into

:bCellToolTip := { |oCol|If(!Empty(oCol:Value),oCol:cHeader + " " + oBrw:aRow[ 1 ] + CRLF + if(oCol:Value,"Occupato","Libero" ),) }

it not make error but now i not see the tooltip
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: errror on :bCellToolTip

Postby Silvio.Falconi » Tue Jul 10, 2018 11:34 am

correct with

:bCellToolTip := { |oCol|If(valtype(oCol:Value)="L",oCol:cHeader + " " + oBrw:aRow[ 1 ] + CRLF + if(oCol:Value,"Occupato","Libero" ),) }
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 32 guests