Page 1 of 1

ICON on Tabpage Caption

Posted: Fri Jun 29, 2012 3:52 pm
by unixkd
Hi Roger

@ 4,0 DCTABPAGE oTabPage CAPTION "Processor" SIZE 90,15 PREOFFSET 1 POSTOFFSET 87 IMAGE PPS_ICON_USERS TABHEIGHT 50

The above will not show Icon on the tabpage.

Joseph

Re: ICON on Tabpage Caption

Posted: Fri Jun 29, 2012 4:29 pm
by rdonnay
Are you using a resource in a .RES file or an .ICO file?

Run the sample in \exp19\samples\tabpage\tabpage.prg.

Re: ICON on Tabpage Caption

Posted: Fri Jun 29, 2012 4:57 pm
by rdonnay
I found a bug in the function DC_GetBitmap() in _DCGETBX.PRG.

The icon problem only occurs when it is a resource, not a disk file.

You can make the below change or wait for the build 258 maintenance release.
Alternately, you can use a disk file instead of a resource.

Code: Select all

FUNCTION DC_GetBitmap()

DEFAULT nType := 0, ;
        lAllowIcons := .t.   <<<<<<<<<<<<<<<
Rebuild DCLIPX.DLL by running build19_sl1.bat.