Change the size of icons in FWH18.03

Post Reply
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Change the size of icons in FWH18.03

Post by Natter »

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?
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: Change the size of icons in FWH18.03

Post by nageswaragunupudi »

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
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Re: Change the size of icons in FWH18.03

Post by Natter »

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
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: Change the size of icons in FWH18.03

Post by nageswaragunupudi »

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
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Re: Change the size of icons in FWH18.03

Post by Natter »

"blue(16x16)" - yes it works
Post Reply