Exemplo n.º 1
0
        public static void SetCueBanner(this ComboBox cb, string cueBannerText)
        {
            if (System.Environment.OSVersion.Version.Major < 6)
            {
                throw new PlatformNotSupportedException();
            }

            SendMessage(cb.Handle, /*CB_SETCUEBANNER*/ 0x1703, IntPtr.Zero, cueBannerText);
            cb.Invalidate();
        }
 public static void CreatePlaylist(ref CPlaylist list, ref ComboBox cbx, ref ListBox lbx, String name, String path)
 {
     list = new CPlaylist();
     list.Name = name;
     list.Path = path + "\\" + name;
     lbx.Items.Clear();
     cbx.Items.Add(list);
     cbx.Sorted = false;
     cbx.Sorted = true;
     cbx.Invalidate();
     cbx.Refresh();
     for (int i = 0; i < cbx.Items.Count; ++i)
     {
         if (cbx.Items[i].ToString() == list.Name)
         {
             cbx.SelectedIndex = i;
             break;
         }
     }
 }
Exemplo n.º 3
0
 void TemplateDocTemplate_DocAdded(Document doc)
 {
     comboDocs.Items.Add(doc);
     comboDocs.Invalidate();
 }
Exemplo n.º 4
0
 private void colorClick(object sender, System.EventArgs e)
 {
     colorDialog.ShowDialog();
     colorLabel.BackColor = colorDialog.Color;
     lineStyle.Invalidate();
 }
Exemplo n.º 5
0
 void TemplateDoc_ModifiedChanged(Document doc, bool fModified)
 {
     comboDocs.Invalidate();
 }