Change the size of icons in FWH18.03

Change the size of icons in FWH18.03

Postby Natter » Mon May 14, 2018 4: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?
Natter
 
Posts: 1120
Joined: Mon May 14, 2007 9:49 am

Re: Change the size of icons in FWH18.03

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

Re: Change the size of icons in FWH18.03

Postby Natter » Tue May 15, 2018 6: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
Natter
 
Posts: 1120
Joined: Mon May 14, 2007 9:49 am

Re: Change the size of icons in FWH18.03

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

Re: Change the size of icons in FWH18.03

Postby Natter » Wed May 16, 2018 5:26 am

"blue(16x16)" - yes it works
Natter
 
Posts: 1120
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Maurizio and 16 guests