FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour btnbmp cargo
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
btnbmp cargo
Posted: 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 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
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: btnbmp cargo
Posted: 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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: btnbmp cargo
Posted: 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 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

Continue the discussion