![]() |
About CXTPControl::SetIconId() |
Post Reply
|
| Author | |
kle4o
Newbie
Joined: 05 October 2006 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: About CXTPControl::SetIconId()Posted: 05 October 2006 at 10:58am |
|
Can some one explain what icon, action and
control identifiers are?
If you have a control and call method CXTPControl::SetIconID with identifier of icon different from control id, you'll see some strange effects. I think that this function must be renamed to SetIconSetId!
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 October 2006 at 12:20am |
|
What "strange effect" you see? |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kle4o
Newbie
Joined: 05 October 2006 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 October 2006 at 2:19am |
|
The “strange effect” is that there are no icons shown. But in tooltip was the right icon. From the name of function I thought that this method sets
resource identifier of an icon for the control. But it’s not true. The method
sets the identifier of iconset which will be used from the control. The
confusion for me became from the following method: SetIcon(icon_id, command_id,…..) // setting the icon for the
control. In previous line icon_id is ID of resource icon. But in the
SetIcon(icon_id) method, parameter icon_id is not resource identifier of an
icon, but it’s a command_id. Maybe this is my confusion only, but from the help is not clear what kind of id is set. My code was: pControl->GetImageManager()->SetIcon(id1,id2); And there was no icon. So I had to change previous line to: pControl->SetIconId(id2); |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |