FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Change the size of icons in FWH18.03
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Change the size of icons in FWH18.03
Posted: Mon May 14, 2018 04:10 PM

My program has a string:

@ 100, 100 XIMAGE oImg SIZE 64, 64 OF oDlg RESOURCE "i_bmp" NOBORDER
The icon shown is of size 64x64
In FWH17.12 all right, in FWH18.03 I see the icon 32x32. Why?

Icons 16x16 are inserted in the xBrowse column headers. In FWh17.12 all right, FWH18.03 the size of these icons has increased to the height of the title. Why?

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Change the size of icons in FWH18.03
Posted: Tue May 15, 2018 12:28 AM

Are you referring to "icons" or "bitmaps"?
Can you help me by suggesting names of any *.ico files in fwh folder for me to test and answer you?

Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Change the size of icons in FWH18.03
Posted: Tue May 15, 2018 06:01 AM

Icons 16x16 in the xBrowse column headers

..FWH\icons\blue.ico

oBrw:aCols[nn]:AddResource( "blue" )
oBrw:aCols[nn]:nHeadBmpNo:= 1
oBrw:aCols[nn]:nHeadBmpAlign:= AL_RIGHT


To show in xImage icons 64x64 additionally added
oImg:FitWidth()
oImg:FitHeight ()
Now works fine

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Change the size of icons in FWH18.03
Posted: Tue May 15, 2018 12:29 PM

Please try
@ 100, 100 XIMAGE oImg SIZE 64, 64 OF oDlg RESOURCE "i_bmp(64x64)" NOBORDER

oBrw:aCols[nn]:AddResource( "blue(16x16)" )

I will explain more in my next post.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Change the size of icons in FWH18.03
Posted: Wed May 16, 2018 05:26 AM

"blue(16x16)" - yes it works

Continue the discussion