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 ?
btnbmp cargo
- Silvio.Falconi
- Posts: 7169
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 3 times
btnbmp cargo
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
- karinha
- Posts: 7951
- Joined: Tue Dec 20, 2005 7:36 pm
- Location: São Paulo - Brasil
- Been thanked: 3 times
- Contact:
Re: btnbmp cargo
Silvio, always POST complete example and with declared Variables.
Silvio, siempre POST ejemplo completo y con Variables declaradas.
Regards, saludos.
Silvio, siempre POST ejemplo completo y con Variables declaradas.
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
- Silvio.Falconi
- Posts: 7169
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 3 times
Re: btnbmp cargo
I correct
I changed the arrays to oPricesBtn: = ARRAY (11, 13)
sorry
I changed the arrays to oPricesBtn: = ARRAY (11, 13)

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