FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Icons in column xBrowse
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Icons in column xBrowse
Posted: Tue Nov 22, 2016 03:27 PM

Hi, all !

In column xBrowse displays the icons in the format .ICO. If the program is compiled under FW1603, those icons are visible. If the program is compiled under FW1610, icons format .ICO is not visible. You have to use the icons in another format (e.g. BMP)

Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Icons in column xBrowse
Posted: Thu Nov 24, 2016 07:26 AM

So xBrwose in FWH1610 does not support viewing of images in format .ICO ?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Icons in column xBrowse
Posted: Thu Nov 24, 2016 10:36 AM

We are checking it

We will provide you an answer asap, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Icons in column xBrowse
Posted: Thu Nov 24, 2016 03:15 PM
In our tests here icons also are displayed.

test program:
Code (fw): Select all Collapse
#include "fivewin.ch"

function Main()

   local oDlg, oFont, oBrw
   local aBmp  := { "c:\fwh\bitmaps\attach.bmp", "c:\fwh\bitmaps\fivetech3.bmp", ;
                    "c:\fwh\icons\books.ico", "c:\fwh\icons\calendar.ico", ;
                    "c:\fwh\bitmaps\open.bmp", "c:\fwh\icons\hires\cd.ico" }

   DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-13
   DEFINE DIALOG oDlg SIZE 400,400 PIXEL TRUEPIXEL FONT oFont TITLE FWVERSION

   @ 20, 20 XBROWSE oBrw SIZE -20,-20 PIXEL OF oDlg ;
      DATASOURCE aBmp COLUMNS 1 CELL LINES NOBORDER

   WITH OBJECT oBrw
      WITH OBJECT :aCols[ 1 ]
         :AddBitmap( aBmp )
         :bBmpData   := { || oBrw:KeyNo }
      END
      WITH OBJECT :AddCol()
         :bStrImage  := { || oBrw:aRow }
         :nWidth     := 50
         :lBmpTransparent  := .t.
      END
      :CreateFromCode()
   END

   ACTIVATE DIALOG oDlg CENTERED
   RELEASE FONT oFont

return nil




Are there any particula ICO files that are not being displayed? Can you provide a sample with the ICOs that you are having problem with?
Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Icons in column xBrowse
Posted: Fri Nov 25, 2016 08:34 AM

Thanks for the reply

If column show the link to the file icons .ICO, then everything is fine. If show icons ICO from resource (.rc file), the icon is not visible

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Icons in column xBrowse
Posted: Fri Nov 25, 2016 12:49 PM
Mr Natter

You are right and we regret the inconvenience.

While we are fixing the problem in FWH 16.11 to be released soon, we request you to please make the following modification in
\fwh\source\function\imgtxtio.prg ( of version 16.10)

Please find this line in function hBmpFromIcoFile at line 663
Code (fw): Select all Collapse
      hIcon := LoadImageResIcon( cIcoFile )

Please modify this line as
Code (fw): Select all Collapse
      hIcon := LoadImageResIcon( GetResources(), cIcoFile )
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion