Esempio n. 1
0
 public ColorGroup(string AName, ColorItem AItems, ColorGroup ANext)
 {
     Name  = AName;
     Index = 0;
     Next  = ANext;
     Items = AItems;
 }
Esempio n. 2
0
 public static ColorItem MenuColorItems(ColorItem Next)
 {
     return
         (new ColorItem("Normal", 2,
                        new ColorItem("Disabled", 3,
                                      new ColorItem("Shortcut", 4,
                                                    new ColorItem("Selected", 5,
                                                                  new ColorItem("Selected disabled", 6,
                                                                                new ColorItem("Shortcut selected", 7,
                                                                                              Next)))))));
 }
Esempio n. 3
0
        public override string GetText(int Item, int MaxLen)
        {
            ColorItem CurItem = Items;

            while (Item > 0)
            {
                CurItem = CurItem.Next;
                Item--;
            }
            return(CurItem.Name);
        }
Esempio n. 4
0
        public ColorItemList(Rect Bounds, ScrollBar AScrollBar, ColorItem AItems) : base(Bounds, 1, null, AScrollBar)
        {
            EventMask |= EventMasks.evBroadcast;
            Items      = AItems;
            int I = 0;

            while (AItems != null)
            {
                AItems = AItems.Next;
                I++;
            }
            Range = I;
        }
Esempio n. 5
0
        public static ColorItem DialogColorItems(DialogPalettes Palette, ColorItem Next)
        {
            byte[] COffset = new byte[3] {
                64, 96, 32
            };
            byte Offset;

            Offset = COffset[(int)Palette];
            return
                (new ColorItem("Frame/background", (byte)(Offset + 1),
                               new ColorItem("Frame icons", (byte)(Offset + 2),
                                             new ColorItem("Scroll bar page", (byte)(Offset + 3),
                                                           new ColorItem("Scroll bar icons", (byte)(Offset + 4),
                                                                         new ColorItem("Static text", (byte)(Offset + 5),

                                                                                       new ColorItem("Label normal", (byte)(Offset + 6),
                                                                                                     new ColorItem("Label selected", (byte)(Offset + 7),
                                                                                                                   new ColorItem("Label shortcut", (byte)(Offset + 8),

                                                                                                                                 new ColorItem("Button normal", (byte)(Offset + 9),
                                                                                                                                               new ColorItem("Button default", (byte)(Offset + 10),
                                                                                                                                                             new ColorItem("Button selected", (byte)(Offset + 11),
                                                                                                                                                                           new ColorItem("Button disabled", (byte)(Offset + 12),
                                                                                                                                                                                         new ColorItem("Button shortcut", (byte)(Offset + 13),
                                                                                                                                                                                                       new ColorItem("Button shadow", (byte)(Offset + 14),

                                                                                                                                                                                                                     new ColorItem("Cluster normal", (byte)(Offset + 15),
                                                                                                                                                                                                                                   new ColorItem("Cluster selected", (byte)(Offset + 16),
                                                                                                                                                                                                                                                 new ColorItem("Cluster shortcut", (byte)(Offset + 17),

                                                                                                                                                                                                                                                               new ColorItem("Input normal", (byte)(Offset + 18),
                                                                                                                                                                                                                                                                             new ColorItem("Input selected", (byte)(Offset + 19),
                                                                                                                                                                                                                                                                                           new ColorItem("Input arrow", (byte)(Offset + 20),

                                                                                                                                                                                                                                                                                                         new ColorItem("History button", (byte)(Offset + 21),
                                                                                                                                                                                                                                                                                                                       new ColorItem("History sides", (byte)(Offset + 22),
                                                                                                                                                                                                                                                                                                                                     new ColorItem("History bar page", (byte)(Offset + 23),
                                                                                                                                                                                                                                                                                                                                                   new ColorItem("History bar icons", (byte)(Offset + 24),

                                                                                                                                                                                                                                                                                                                                                                 new ColorItem("List normal", (byte)(Offset + 25),
                                                                                                                                                                                                                                                                                                                                                                               new ColorItem("List focused", (byte)(Offset + 26),
                                                                                                                                                                                                                                                                                                                                                                                             new ColorItem("List selected", (byte)(Offset + 27),
                                                                                                                                                                                                                                                                                                                                                                                                           new ColorItem("List divider", (byte)(Offset + 28),

                                                                                                                                                                                                                                                                                                                                                                                                                         new ColorItem("Information pane", (byte)(Offset + 29),
                                                                                                                                                                                                                                                                                                                                                                                                                                       Next))))))))))))))))))))))))))))));
        }
Esempio n. 6
0
        public static ColorItem WindowColorItems(WindowPalettes Palette,
                                                 ColorItem Next)
        {
            byte[] COffset = new byte[3] {
                8, 16, 24
            };
            byte Offset;

            Offset = COffset[(int)Palette];
            return
                (new ColorItem("Frame passive", (byte)(Offset + 0),
                               new ColorItem("Frame active", (byte)(Offset + 1),
                                             new ColorItem("Frame icons", (byte)(Offset + 2),
                                                           new ColorItem("Scroll bar page", (byte)(Offset + 3),
                                                                         new ColorItem("Scroll bar icons", (byte)(Offset + 4),
                                                                                       new ColorItem("Normal text", (byte)(Offset + 5),
                                                                                                     Next)))))));
        }
Esempio n. 7
0
 public static ColorItem DesktopColorItems(ColorItem Next)
 {
     return(new ColorItem("Color", 1, Next));
 }
Esempio n. 8
0
 public ColorItem(string AName, byte AIndex, ColorItem ANext)
 {
     Name  = AName;
     Index = AIndex;
     Next  = ANext;
 }