Just a icon & Text on Button

The place for threads about TimoSoft ButtonControls.
Post Reply
Andreas Vogt
Cadet
Posts: 5
Joined: 04 Oct 2013, 20:13

Just a icon & Text on Button

Post by Andreas Vogt »

Hi Timo,
How the hell can I add an Icon on a button?
I added the hImageList to the CommandButton and iconIndex = 1 but no icon is shown.
In your Samples the Bin-file works but the compiled project also shows no icon.

BTW: My comctl32.dll has version 5.82 (Windows Vista)
Andreas
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: Just a icon & Text on Button

Post by TiKu »

The hImageList property requires version 6.x of comctl32.dll, so make sure that you specify a manifest file for the binary.
Windows Vista comes with versions 5.82 and 6.10 (and probably a couple of others). Which of them is used, depends on the presence of a manifest. Without manifest, version 5.82 will be used.

If you place a manifest file next to your VB6.exe file, you'll be able to use new features like this one even within the VB6 runtime environment. Note, that with Windows Vista you might need to restart the computer before the VB6.exe.manifest will be recognized.

Regards
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Andreas Vogt
Cadet
Posts: 5
Joined: 04 Oct 2013, 20:13

Re: Just a icon & Text on Button

Post by Andreas Vogt »

Thank you!
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: Just a icon & Text on Button

Post by TiKu »

You're welcome.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Post Reply