FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ICON question
Posts: 11
Joined: Thu Jan 21, 2016 08:26 PM

ICON question

Posted: Thu Jan 21, 2016 10:50 PM

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.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: ICON question

Posted: Fri Jan 22, 2016 01:03 AM

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
Posts: 11
Joined: Thu Jan 21, 2016 08:26 PM

Re: ICON question

Posted: Fri Jan 22, 2016 01:53 AM

GREAT !!!

Tx

Continue the discussion