Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Calendar Event Gradient Offset Color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Calendar Event Gradient Offset Color

 Post Reply Post Reply
Author
Message
jpcoffeyXXX View Drop Down
Groupie
Groupie


Joined: 16 August 2005
Location: United States
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpcoffeyXXX Quote  Post ReplyReply Direct Link To This Post Topic: Calendar Event Gradient Offset Color
    Posted: 29 July 2009 at 9:55am
When creating an event, I use a markuplabel control to show what the event will look like on the calendar.  Does anyone know of a formula to calculate the lighter shade of a given color?  As it stands now, I will have to create a table for each corresponding color in my label list.  If any color changes, I will have to update the table as well.  Given any color, I would rather just calculate an offset of a few shades and use that as the lighter color in the gradient.

Does anyone know how to calculate the lighter shade for a calendar event?  Given that it doesn't have to be exact, does anyone know of a forumla to calculate a lighter shade of any color?  Thanks for your feedback.

Sincerely,

John Coffey

Product: Xtreme SuitePro (ActiveX) version 13.1.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0


Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2009 at 1:21pm
You can check one of gradient fill algorithm here - http://www.codeproject.com/KB/miscctrl/gradientprogressctrl.aspx
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.219 seconds.