Changeset 962


Ignore:
Timestamp:
5/2/2009 3:50:56 AM (5 years ago)
Author:
lowjoel
Message:

Added the UxThemeAPI and UxThemeMenuRenderer? classes. They allow forms to use the new Vista-styled controls (most notably ListView?) and switches menu rendering to the UxTheme? rendering when it detects Vista or later.

Location:
branches/eraser6
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/DefaultPlugins/CustomMethodEditorForm.cs

    r956 r962  
    3838        { 
    3939            InitializeComponent(); 
     40            UxThemeAPI.UpdateControlTheme(this); 
    4041        } 
    4142 
  • branches/eraser6/DefaultPlugins/SettingsForm.cs

    r952 r962  
    3939        { 
    4040            InitializeComponent(); 
     41            UxThemeAPI.UpdateControlTheme(this); 
     42            UxThemeAPI.UpdateControlTheme(customMethodContextMenuStrip); 
    4143 
    4244            //Populate the list of erasure passes, except the FL16KB. 
  • branches/eraser6/Eraser/LogForm.cs

    r946 r962  
    3939        { 
    4040            InitializeComponent(); 
     41            UxThemeAPI.UpdateControlTheme(this); 
    4142            this.task = task; 
    4243 
  • branches/eraser6/Eraser/MainForm.cs

    r944 r962  
    4444        { 
    4545            InitializeComponent(); 
     46            UxThemeAPI.UpdateControlTheme(toolbarScheduleMenu); 
     47            UxThemeAPI.UpdateControlTheme(toolbarHelpMenu); 
     48            UxThemeAPI.UpdateControlTheme(notificationMenu); 
    4649            SettingsPage.CreateControl(); 
    4750            SchedulerPage.CreateControl(); 
  • branches/eraser6/Eraser/SchedulerPanel.cs

    r948 r962  
    4141        { 
    4242            InitializeComponent(); 
     43            UxThemeAPI.UpdateControlTheme(this); 
     44            UxThemeAPI.UpdateControlTheme(schedulerMenu); 
     45            UxThemeAPI.UpdateControlTheme(schedulerDefaultMenu); 
    4346 
    4447            //Populate the scheduler list-view with the current task list 
  • branches/eraser6/Eraser/SettingsPanel.cs

    r958 r962  
    4343        { 
    4444            InitializeComponent(); 
    45             Dock = DockStyle.None; 
     45            UxThemeAPI.UpdateControlTheme(this); 
     46            UxThemeAPI.UpdateControlTheme(pluginsMenu); 
    4647 
    4748            //For new plugins, register the callback. 
  • branches/eraser6/Eraser/TaskPropertiesForm.cs

    r957 r962  
    3939        { 
    4040            InitializeComponent(); 
     41            UxThemeAPI.UpdateControlTheme(this); 
     42            UxThemeAPI.UpdateControlTheme(dataContextMenuStrip); 
    4143            scheduleTime.CustomFormat = DateTimeFormatInfo.CurrentInfo.ShortTimePattern; 
    4244 
  • branches/eraser6/Eraser/UpdateForm.cs

    r948 r962  
    4545        { 
    4646            InitializeComponent(); 
     47            UxThemeAPI.UpdateControlTheme(this); 
    4748            updateListDownloader.RunWorkerAsync(); 
    4849        } 
  • branches/eraser6/Util/Util.csproj

    r949 r962  
    5555    <Compile Include="KernelAPI.cs" /> 
    5656    <Compile Include="File.cs" /> 
     57    <Compile Include="UxThemeAPI.cs" /> 
    5758    <Compile Include="VolumeInfo.cs" /> 
    5859    <Compile Include="NetAPI.cs" /> 
Note: See TracChangeset for help on using the changeset viewer.