ICON question

Post Reply
dpesic
Posts: 11
Joined: Thu Jan 21, 2016 8:26 pm

ICON question

Post by dpesic »

I can't change size of icon on dialog, it allways show at 32x32 pixels.
As you can see in icon.prg

CLASS TIcon FROM TControl
....
METHOD New( nRow, nCol, cResName, cIcoFile, lBorder, bClick,;
oWnd, lUpdate, bWhen, nClrFore, nClrBack )


there is only nRow and nCol parameters.

Is there any way to show icon in diffrent size.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: ICON question

Post by nageswaragunupudi »

You can use BTNBMP to display any image including Icons also (any recent versions 2015).

Example:

@ 20,20 BTNBMP FILE "c:\fwh\icons\fivetech.ico" SIZE 64,64 PIXEL OF oDlg ADJUST FLAT NOBORDER
Regards

G. N. Rao.
Hyderabad, India
dpesic
Posts: 11
Joined: Thu Jan 21, 2016 8:26 pm

Re: ICON question

Post by dpesic »

GREAT !!!


Tx
Post Reply