TExplorerBar Bitmaps

Re: TExplorerBar Bitmaps

Postby Antonio Linares » Thu Mar 19, 2015 8:44 pm

Cristobal,

Que ejemplo estas probando ?

Yo estoy probando FWH\samples\explbar.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41439
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: TExplorerBar Bitmaps

Postby cnavarro » Thu Mar 19, 2015 9:06 pm

Antonio, estoy probando el ejemplo explbar.prg de samples

Solucionado:

Editado (añadiendo la solucion de Daniel que aparece abajo)

Code: Select all  Expand view

METHOD AddLink( cPrompt, bAction, cBitmap ) CLASS TTaskPanel

.../...

   AAdd( ::aLinks, oUrlLink )       // Add
   
return nil

 


Code: Select all  Expand view

METHOD Destroy() CLASS TTaskPanel

   AEval( ::aBitmaps,;
          { | aItem | DeleteObject( aItem[ BMP_HANDLE ] ),;
                      DeleteObject( aItem[ BMP_BRIGHT ] ) } )

  // AEval( ::aLinks, { | oItem | DeleteObject( oItem:hBmp ) } )    // No hace falta
  AEval( ::aLinks, { | oItem | oItem:End() } )        // Añadir
   
   DeleteObject( ::hBmpPanel )
   
   DeleteObject( ::hRegion )

   
return ::Super:Destroy()
 


Y tambien
Code: Select all  Expand view

METHOD Destroy() CLASS TExplorerBar
Local x

   AEval( ::aPanels,;
          { | oItem | oItem:End() } )

Return ::Super:Destroy()

 


Code: Select all  Expand view

CLASS TURLLINK

.../...

   METHOD End()    INLINE ::Destroy()

   METHOD Destroy()

ENDCLASS


//----------------------------------------------------------------------------//

METHOD Destroy() CLASS TURLLink

 DeleteObject( ::hBmp )

RETURN ::Super:Destroy()

//----------------------------------------------------------------------------//

 

CheckRes,txt
03/19/15 22:09:09: C:\Fwh\Fwh1501\samples\explbar.exe --
Last edited by cnavarro on Thu Mar 19, 2015 9:31 pm, edited 1 time in total.
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: TExplorerBar Bitmaps

Postby Daniel Garcia-Gil » Thu Mar 19, 2015 9:16 pm

Saludos


Si entra por el destroy, el problema parece que viende de la clase UrlLink

falta esto en la clase

la definicion
Code: Select all  Expand view
METHOD Destroy()



el metodo
Code: Select all  Expand view
METHOD Destroy() CLASS TURLLink

  DeleteObject( ::hBmp )

RETURN ::Super:Destroy()
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: TExplorerBar Bitmaps

Postby Antonio Linares » Thu Mar 19, 2015 9:33 pm

Daniel,

Muchas gracias :-)

Estas en forma!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41439
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: TExplorerBar Bitmaps

Postby Francisco Horta » Thu Mar 19, 2015 9:43 pm

Antonio, Daniel, Cristobal

Probado sin modificar la clase tExplorerBar y adecuando la TUrlLink el metodo Destroy() y todo funciona de maravilla !!!

Gracias
____________________
Paco
Francisco Horta
 
Posts: 845
Joined: Sun Oct 09, 2005 5:36 pm
Location: la laguna, mexico.

Previous

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 42 guests