I have some btnbmp and I use cargo to save a state
for k=1 to 11
for j=1 to 13
@ nrow,ncol BTNBMP oPrezziBtn[k+j] PROMPT transform(aImporti[j],"999.99") ;
SIZE nSizeW,nSizeH FLAT PIXEL OF oDlg NOROUND
oPrezziBtn[k+j]:cargo := {k,j,1}
obviously at each cargo[3] value the btnbmp has its own color -at the beginning it has white
but i want to restore the new color
ACTIVATE DIALOG oDLG CENTER ;
ON INIT ( Restorecolors( oPrezziBtn))
function Restorecolors( oBtn)
local nCol := oBtn:cargo[1]
local nRow := oBtn:cargo[2]
? nCol
return nil
On function Restorecolors( oBtn) give me error
Error description: Error BASE/1004 No exported method: CARGO
HOw I can resolve it ?
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