Page 1 of 1

btnbmp state

PostPosted: Wed Feb 08, 2023 9:38 am
by Silvio.Falconi
can I show a btnbmp with an image and if I click on it it doesn't create the click movement without using the disable() method?
I allready tried with enablewindow(aBtnBrow[3]:hwnd,.t.) or .f.

Re: btnbmp state

PostPosted: Thu Feb 09, 2023 8:31 am
by Antonio Linares
Dear Silvio,

Try with aBtnBrow[3]:lPressed = .T.

Re: btnbmp state

PostPosted: Thu Feb 09, 2023 9:33 am
by Silvio.Falconi
I resolved but on another mode

@ oBrowse:nBottom+3, oBrowse:nWidth-44.4 BTNBMP aBtnBrow[3] SIZE 12,10.3 PIXEL OF oDlg NOROUND 2007
aBtnBrow[3]:bClrGrad := { |lInvert| If( lInvert, aBru[ 2 ]:hBrush, aBru[ 1 ]:hBrush ) }
aBtnBrow[3]:nClrBorder := { || (IIF(aBtnBrow[3]:lMOver,,CLR_GRAY)) }
aBtnBrow[3]:disable()