Print Page | Close Window

CXTButton & Icons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5592
Printed Date: 11 November 2025 at 8:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTButton & Icons
Posted By: jimmy
Subject: CXTButton & Icons
Date Posted: 23 November 2006 at 2:15pm
Hello,

i've a static CXTPImageManager

    if (s_FileItemImages.GetImages()->GetCount() == 0 )
    {
        s_FileItemImages.SetMaskColor(RGB(0,255,255));
        s_FileItemImages.SetIcons(IDB_GRIDITEMFILE, 0, 3, CSize(12, 12));
    }
the bitmap has 3 pictures and has a size from 35x12 pixel.

Now i like to set this Icon to a CXTButton
m_wndSave.SetIcon(CSize(12,12), s_FileItemImages.GetImage(0,12)->GetIcon());
This will work.
But
m_wndLoad.SetIcon(CSize(12,12), s_FileItemImages.GetImage(1,12)->GetIcon());
does not show a icon into the button.
Why ?

    Jimmy





Replies:
Posted By: Oleg
Date Posted: 24 November 2006 at 4:00am
Hi,
I think problem can be in size of bitmap. If must be 36*12 (not 35*12)...


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net