ICON on Tabpage Caption

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

ICON on Tabpage Caption

#1 Post 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

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: ICON on Tabpage Caption

#2 Post by rdonnay »

Are you using a resource in a .RES file or an .ICO file?

Run the sample in \exp19\samples\tabpage\tabpage.prg.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: ICON on Tabpage Caption

#3 Post 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.
The eXpress train is coming - and it has more cars.

Post Reply