I wish change the buttonbar of the rpreview and I use Override command
at init it seem run ok then when I wish use zoom or two pages it make error

Cristobal sad me to insert a function to set the lRebar variable
and use it on my function
but it have the same error
someone can help me please
OVERRIDE METHOD BuildButtonBar IN CLASS TPreview WITH PreviewButtonBarNew
Function PreviewButtonBarNew()
....
return nilat init it seem run ok then when I wish use zoom or two pages it make error

Cristobal sad me to insert a function to set the lRebar variable
Function SetGetlRebar( lVal )
if !Empty( lVal ) .and Valtype( lVal ) = "L"
lRebar := lVal
endif
Return lRebarand use it on my function
Function PreviewButtonBarNew()
local oImageList, oReBar, oBar, oHand, uRet, oBtn
local Self := HB_QSelf()
local lRebar := .t.
SetGetlRebar( .T. )
DEFINE CURSOR ::oHand HAND
if lRebarbut it have the same error
someone can help me please
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 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
I use : FiveWin for Harbour March-April 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