btnbmp cargo

btnbmp cargo

Postby Silvio.Falconi » Mon Mar 28, 2022 10:14 am

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 ?
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: 6893
Joined: Thu Oct 18, 2012 7:17 pm

Re: btnbmp cargo

Postby karinha » Mon Mar 28, 2022 11:07 am

Silvio, always POST complete example and with declared Variables.

Silvio, siempre POST ejemplo completo y con Variables declaradas.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7603
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: btnbmp cargo

Postby Silvio.Falconi » Mon Mar 28, 2022 11:31 am

I correct
I changed the arrays to oPricesBtn: = ARRAY (11, 13)

:) sorry
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: 6893
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 85 guests