Example #1
0
        public void GetDefaultTextColour(MHColour colour)
        {
            MHApplication pApp = CurrentApp();

            if (pApp != null && pApp.TextColour.IsSet())
            {
                colour.Copy(pApp.TextColour);
            }
            else
            {
                colour.SetFromString("\u00FF\u00FF\u00FF\u0000");  // '=FF=FF=FF=00' UK MHEG Default - white
            }
        }
Example #2
0
        public void GetDefaultBGColour(MHColour colour)
        {
            MHApplication pApp = CurrentApp();

            if (pApp != null && pApp.BGColour.IsSet())
            {
                colour.Copy(pApp.BGColour);
            }
            else
            {
                colour.SetFromString("\u0000\u0000\u0000\u00FF");  // '=00=00=00=FF' Default - transparent
            }
        }
Example #3
0
        public void GetDefaultButtonRefColour(MHColour colour)
        {
            MHApplication pApp = CurrentApp();

            if (pApp != null && pApp.ButtonRefColour.IsSet())
            {
                colour.Copy(pApp.ButtonRefColour);
            }
            else
            {
                colour.SetFromString("\u00FF\u00FF\u00FF\u0000");  // '=FF=FF=FF=00' ??? Not specified in UK MHEG
            }
        }
Example #4
0
 public virtual void SetLineColour(MHColour colour, MHEngine engine)
 {
     InvalidAction("SetLineColour");
 }
Example #5
0
 public virtual void SetBackgroundColour(MHColour colour, MHEngine engine)
 {
     InvalidAction("SetBackgroundColour");
 }
Example #6
0
 public void Copy(MHColour col)
 {
     m_nColIndex = col.m_nColIndex;
     m_ColStr.Copy(col.m_ColStr);
 }