![]() |
JPG image in Day/Week Event Cell |
Post Reply ![]() |
Author | |
stevemur2 ![]() Newbie ![]() Joined: 29 March 2008 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() 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 ?
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.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Why you can't convert them to png ? jpg is not good format for icons.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
stevemur2 ![]() Newbie ![]() Joined: 29 March 2008 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
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)?
|
|
![]() |
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 |