Print Page | Close Window

JPG image in Day/Week Event Cell

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=10007
Printed Date: 21 May 2024 at 11:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: JPG image in Day/Week Event Cell
Posted By: stevemur2
Subject: JPG image in Day/Week Event Cell
Date Posted: 31 March 2008 at 12:41am
Great toolset Oleg, sserge and company.  Really terrific product.  I've got the RibbonBar and CalendarControl in my app and it's working well.
 
My question is this -- my only major customization is that I'd like to displa a JPG image (from thumbnail files stored on disk already) in the calendar event.  Assume I've already rescaled the image down to say a 32x32 icon, but that it's still in JPG format.    And assume I'm only going to be displaying as many of these as the cell allows.
 
Now, I know how to use the Deployment Wizard and recompile the DLL to use in my app. 
 
I've made a few customizations already in the display of events (e.g., eliminating the location field, conditional color-coding based on my app, etc.). 
 
Do you have any XTP function calls that can read JPGs straight from the disk, or do I need to use my own, e.g., http://www.codeproject.com/KB/graphics/cximage.aspx - http://www.codeproject.com/KB/graphics/cximage.aspx  ? 
 
I assume I need to customize the various "Draw(" functions for the event itself (I'm using the Office2007 theme)... but if I do that, I can't figure out the best-practice method for incorporating that CXImage library into the excellent existing library that you've written. 



Replies:
Posted By: Oleg
Date Posted: 31 March 2008 at 1:06am
Hi,
Why you can't convert them to png ? jpg is not good format for icons.


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


Posted By: stevemur2
Date Posted: 31 March 2008 at 1:09am

That's certainly one option -- it would be a bit of a performance hit though, but possibly acceptable. 

If we did have a file at say "c:\test.png" (just to keep it simple), can you give us an example of the kind of code we'd need in the event draw function(s)?



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