Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - CalendarControl using ImageManager for MarkUp
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CalendarControl using ImageManager for MarkUp

 Post Reply Post Reply
Author
Message
TShriver View Drop Down
Groupie
Groupie
Avatar

Joined: 27 July 2008
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote TShriver Quote  Post ReplyReply Direct Link To This Post Topic: CalendarControl using ImageManager for MarkUp
    Posted: 21 November 2016 at 5:14pm
I am unable to get an image from an ImageManager control to show up in the Markup for a Calendar event.  I am able to add a CalendarEvent to the Calendar and have the markup displayed correctly with the exception of an icon. 

The help file references setting the source to the icon id of the ImageManager.  I have the ImageManager loaded with icons with id 1 through 16.  the markup source includes the following line:

<image source='1'/>

With other controls you need to load the icons like with the commandbar.  but with the calendar control there is no method to load icons...

Am I missing something???

Thank you in Advance,

Tim
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 22 November 2016 at 3:27am
I'm doing something like this:

XTPImageManager()->SetIconFromResource(
     CXTPModuleHandle(_T("imageres.dll")), MAKEINTRESOURCE(105), 25,
     CSize(32,32), xtpImageNormal);

<Image  Source='25'/>

-cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.