﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebScheduler - TimeLine Event Color Bar Font Color?</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/TimeLine-Event-Color-Bar-Font-Color/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>TimeLine Event Color Bar Font Color?</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/TimeLine-Event-Color-Bar-Font-Color/</link><pubDate>Wed, 14 Mar 2012 22:31:41 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;By default, the colored bar background color is determined based on its resource. The resource color field in Resources table should match with the corresponding color bar background color. For example: the Resource of Event X is Mr. John Doe. This resource is assigned with yellow color. By default, the Event X colored bar background color will be yellow too.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;For your scenario, I’d like to suggest you to set the color bar text based on the resource id. Please try to add following if clause into the OnEventBound JavaScript function.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function OnEventBound(controlId, evt)
{
    var WebScheduler1 = ISGetObject(controlId);
            
    if (WebScheduler1.ViewSettings.SelectedViewMode == "Timeline")
    {
        var tableElm = evt.GetContentElement().childNodes[0];
        var resourceID = evt.GetOriginalObject().ResourceID;

        if (resourceID == 1 || resourceID == 2 || resourceID == 3)
        {
            tableElm.style.cssText = "TEXT-ALIGN: center; WIDTH: 100%; FONT-FAMILY: Segoe UI; HEIGHT: 100%; COLOR: black; FONT-SIZE: 8pt";
        }
                
        if (resourceID == 4 || resourceID == 5 || resourceID == 6)
        {
            tableElm.style.cssText = "TEXT-ALIGN: center; WIDTH: 100%; FONT-FAMILY: Segoe UI; HEIGHT: 100%; COLOR: white; FONT-SIZE: 8pt";
        }
    }
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps. Please feel free to let us know if you have other questions regarding this topic.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>TimeLine Event Color Bar Font Color?</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/TimeLine-Event-Color-Bar-Font-Color/</link><pubDate>Wed, 14 Mar 2012 12:55:00 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt;In testing my app I discovered a slight problem and I am hopeful you can assist me further. It seems that I should not make the color bar content text ALL black or ALL white, I need a mixture of black OR white text depending on the color bar background color. &lt;/p&gt;
&lt;p&gt;If some of my color bars are  dark color and the text is all black, then the text is hard to see/read. If some of my color bars are light colored and the text is all white, then the text is also hard to see/read.&lt;/p&gt;
&lt;p&gt;My question is, is it possible to set the color bar text based on the colorbar color? For example:&lt;/p&gt;
&lt;p&gt;___________________________&lt;/p&gt;
&lt;p&gt;If (SubjectColor == "#800000" || SubjectColor == "#808000")&lt;/p&gt;
&lt;p&gt;then make the text white &lt;/p&gt;
&lt;p&gt;else &lt;/p&gt;
&lt;p&gt;make the text black&lt;/p&gt;
&lt;p&gt;------------------------&lt;/p&gt;
&lt;p&gt;OR something like this?????????&lt;/p&gt;
&lt;p&gt;If (SubjectColor == "#800000" || SubjectColor == "#808000")&lt;/p&gt;
&lt;p&gt;then make the text white else&lt;/p&gt;
&lt;p&gt;If (SubjectColor == "#FF0000" || SubjectColor == "#FFFF00")&lt;/p&gt;
&lt;p&gt;make the text black&lt;/p&gt;
&lt;p&gt;------------------------&lt;/p&gt;
&lt;p&gt;Is this possble or am I stuck with either all black or all white color bar content text?&lt;/p&gt;
&lt;p&gt;Please advise and best regards - Frank&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>TimeLine Event Color Bar Font Color?</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/TimeLine-Event-Color-Bar-Font-Color/</link><pubDate>Sun, 11 Mar 2012 21:49:21 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Glad to hear that the JavaScript function works.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>TimeLine Event Color Bar Font Color?</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/TimeLine-Event-Color-Bar-Font-Color/</link><pubDate>Sat, 10 Mar 2012 16:14:08 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Yudi,&lt;/p&gt;
&lt;p&gt;Thanks for the prompt reply. Your solution worked perfectly! &lt;/p&gt;
&lt;p&gt;Frank&lt;/p&gt;</description></item><item><title>TimeLine Event Color Bar Font Color?</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/TimeLine-Event-Color-Bar-Font-Color/</link><pubDate>Fri, 09 Mar 2012 04:22:58 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Please try to set the font color of event in Timeline view by setting the cssText property in OnEventBound as shown in the following snippet code.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;function OnEventBound(controlId, evt)
{
    var WebScheduler1 = ISGetObject(controlId);

    if (WebScheduler1.ViewSettings.SelectedViewMode == "Timeline")
    {
        var tableElm = evt.GetContentElement().childNodes[0];

        tableElm.style.cssText = "TEXT-ALIGN: center; WIDTH: 100%; FONT-FAMILY: Segoe UI; HEIGHT: 100%; COLOR: black; FONT-SIZE: 8pt";
    }
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>TimeLine Event Color Bar Font Color?</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/TimeLine-Event-Color-Bar-Font-Color/</link><pubDate>Thu, 08 Mar 2012 00:11:53 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Gentlemen,&lt;/p&gt;
&lt;p&gt;Is there a way to change the font color from white to black in the event color bar text in timeline view? I believe this is the "subject" field content from the event table.&lt;/p&gt;
&lt;p&gt;I have tried just about every setting I an think of in the "TimelineContentCellStyle" parameters but there does not seem to be a setting to change the font color from the default white to black. Is this possible? Does it need to be a custom css setting of some kind?&lt;/p&gt;
&lt;p&gt;Attached is a screenshot, please look at the Eco 2 - MAV "Wind Dancer" at 1PM color bar example. How can I change the "Wind Dancer-a:.............." text to black?&lt;/p&gt;
&lt;p&gt;I realize this is a trivial issue but many of the color bars being utilized in my app are very light in color and the white font "washes" out the color bar text making it impossible to see and/or read.&lt;/p&gt;
&lt;p&gt;Please advide and thanks!&lt;/p&gt;
&lt;p&gt;Frank Gary&lt;/p&gt;</description></item></channel></rss>