FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Off topic
Posts: 297
Joined: Fri Apr 14, 2006 05:52 PM
Off topic
Posted: Wed Sep 10, 2008 03:07 PM

Buenas Tardes Antonio, mira, tengo un problema, y es que uso la clase de terceros BtnGet. He conseguido compilarla con FWH8.08, pero el problema es que cuando pasa el rat贸n por encima de la imagen que simula el bot贸n del get, me aparece el bitmap que se le ha puesto nuevo al GET (con el ACTION).

驴Sabes c贸mo puedo solucionarlo?

Muchas Gracias de Antemano, si necesitas cualquier dato me lo comentas.

:wink:

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Off topic
Posted: Wed Sep 10, 2008 03:11 PM

Mike,

Publica aqui el c贸digo de BtnGet.prg, gracias

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Off topic
Posted: Wed Sep 10, 2008 03:22 PM
Mike

Debes modificar ambas clases

yo modifique la btnget y la clase tget

en la clase tGET cree una variable
CLASS TGet FROM TControl

   DATA   lBtnGet INIT .f.
   bla...bla..

METHOD CreateButton() CLASS TGet

   local oThis := Self

   if ValType( ::bAction ) == "B" .and. !::lBtnGet //Upper( ::ClassName() ) == "TGET"



en la clase tbtnget
comente la baction y oBtn, ya que estan en tGet
DATA   /*bAction, */cResName, /*oBtn,*/ lBtnORBmp

en los metodos NEW y REDEFINE
METHOD ReDefine( nId, bSetGet, oWnd, nHelpId, cPict, bValid, nClrFore,;
                 nClrBack, oFont, oCursor, cMsg, lUpdate, bWhen, ;
                 bChanged, lReadOnly, lSpinner, bUp, bDown, bMin, ;
                 bMax, cResName, bAction, nBmpWidth ) CLASS TBtnGet

   Super:ReDefine( nId, bSetGet, oWnd, nHelpId, cPict, bValid, ;
                 nClrFore, nClrBack, oFont, oCursor, cMsg, lUpdate, ;
                 bWhen, bChanged, lReadOnly, lSpinner, bUp, bDown, ;
                 bMin, bMax )

   DEFAULT nBmpWidth := 22, ::lFocusClr := .t.

   ::lBtnGet   := .t.
   bla..bla



Espero que te sirva
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl

Continue the discussion