Icons in column xBrowse

Icons in column xBrowse

Postby Natter » Tue Nov 22, 2016 3: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)
Natter
 
Posts: 1182
Joined: Mon May 14, 2007 9:49 am

Re: Icons in column xBrowse

Postby Natter » Thu Nov 24, 2016 7:26 am

So xBrwose in FWH1610 does not support viewing of images in format .ICO ?
Natter
 
Posts: 1182
Joined: Mon May 14, 2007 9:49 am

Re: Icons in column xBrowse

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41858
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Icons in column xBrowse

Postby nageswaragunupudi » Thu Nov 24, 2016 3:15 pm

In our tests here icons also are displayed.

test program:
Code: Select all  Expand view
#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
 


Image

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
User avatar
nageswaragunupudi
 
Posts: 10471
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Icons in column xBrowse

Postby Natter » Fri Nov 25, 2016 8: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
Natter
 
Posts: 1182
Joined: Mon May 14, 2007 9:49 am

Re: Icons in column xBrowse

Postby nageswaragunupudi » 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: Select all  Expand view
     hIcon := LoadImageResIcon( cIcoFile )

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10471
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 38 guests