[Roam-commit] SF.net SVN: roam: [89] Trunk/Source
Status: Alpha
Brought to you by:
jonfroehlich
|
From: <jon...@us...> - 2007-07-31 08:23:30
|
Revision: 89
http://roam.svn.sourceforge.net/roam/?rev=89&view=rev
Author: jonfroehlich
Date: 2007-07-31 01:23:27 -0700 (Tue, 31 Jul 2007)
Log Message:
-----------
added register hot key test
Modified Paths:
--------------
Trunk/Source/Roam/Utils/WindowsConstants.cs
Trunk/Source/Roam.Test/Roam.Test.csproj
Trunk/Source/Roam.UI/Controls/AudioRecorder.cs
Trunk/Source/Roam.suo
Added Paths:
-----------
Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.Designer.cs
Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.cs
Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.resx
Modified: Trunk/Source/Roam/Utils/WindowsConstants.cs
===================================================================
--- Trunk/Source/Roam/Utils/WindowsConstants.cs 2007-07-30 00:09:11 UTC (rev 88)
+++ Trunk/Source/Roam/Utils/WindowsConstants.cs 2007-07-31 08:23:27 UTC (rev 89)
@@ -28,7 +28,7 @@
/// <author>Jon Froehlich</author>
public static class WindowsConstants
{
- //these values are found in winuser.h or through experimentation
+ //these values are found in winuser.h/winuserm.h or through experimentation
#region Keys
/// <summary>
@@ -81,12 +81,101 @@
public static int WM_MOUSELAST = 0x0209;
#endregion Mouse
- public static byte VK_BACK = 0x08;
- public static byte VK_ESCAPE = 0x1B;
- public static byte VK_SHIFT = 0x10;
- public static byte VK_CAPITAL = 0x14;
- public static byte VK_NUMLOCK = 0x90;
+ #region VirtualKey
+ //these values are found in resdefce.h
+ public static byte VK_LBUTTON = 0x01;
+ public static byte VK_RBUTTON = 0x02;
+ public static byte VK_CANCEL = 0x03;
+ public static byte VK_MBUTTON = 0x04;
+ public static byte VK_BACK = 0x08;
+ public static byte VK_TAB = 0x09;
+ public static byte VK_CLEAR = 0x0C;
+ public static byte VK_RETURN = 0x0D;
+ public static byte VK_SHIFT = 0x10;
+ public static byte VK_CONTROL = 0x11;
+ public static byte VK_MENU = 0x12;
+ public static byte VK_PAUSE = 0x13;
+ public static byte VK_CAPITAL = 0x14;
+ public static byte VK_ESCAPE = 0x1B;
+ public static byte VK_SPACE = 0x20;
+ public static byte VK_PRIOR = 0x21;
+ public static byte VK_NEXT = 0x22;
+ public static byte VK_END = 0x23;
+ public static byte VK_HOME = 0x24;
+ public static byte VK_LEFT = 0x25;
+ public static byte VK_UP = 0x26;
+ public static byte VK_RIGHT = 0x27;
+ public static byte VK_DOWN = 0x28;
+ public static byte VK_SELECT = 0x29;
+ public static byte VK_PRINT = 0x2A;
+ public static byte VK_EXECUTE = 0x2B;
+ public static byte VK_SNAPSHOT = 0x2C;
+ public static byte VK_INSERT = 0x2D;
+ public static byte VK_DELETE = 0x2E;
+ public static byte VK_HELP = 0x2F;
+ public static byte VK_NUMPAD0 = 0x60;
+ public static byte VK_NUMPAD1 = 0x61;
+ public static byte VK_NUMPAD2 = 0x62;
+ public static byte VK_NUMPAD3 = 0x63;
+ public static byte VK_NUMPAD4 = 0x64;
+ public static byte VK_NUMPAD5 = 0x65;
+ public static byte VK_NUMPAD6 = 0x66;
+ public static byte VK_NUMPAD7 = 0x67;
+ public static byte VK_NUMPAD8 = 0x68;
+ public static byte VK_NUMPAD9 = 0x69;
+ public static byte VK_MULTIPLY = 0x6A;
+ public static byte VK_ADD = 0x6B;
+ public static byte VK_SEPARATOR = 0x6C;
+ public static byte VK_SUBTRACT = 0x6D;
+ public static byte VK_DECIMAL = 0x6E;
+ public static byte VK_DIVIDE = 0x6F;
+ public static byte VK_F1 = 0x70;
+ public static byte VK_F2 = 0x71;
+ public static byte VK_F3 = 0x72;
+ public static byte VK_F4 = 0x73;
+ public static byte VK_F5 = 0x74;
+ public static byte VK_F6 = 0x75;
+ public static byte VK_F7 = 0x76;
+ public static byte VK_F8 = 0x77;
+ public static byte VK_F9 = 0x78;
+ public static byte VK_F10 = 0x79;
+ public static byte VK_F11 = 0x7A;
+ public static byte VK_F12 = 0x7B;
+ public static byte VK_F13 = 0x7C;
+ public static byte VK_F14 = 0x7D;
+ public static byte VK_F15 = 0x7E;
+ public static byte VK_F16 = 0x7F;
+ public static byte VK_F17 = 0x80;
+ public static byte VK_F18 = 0x81;
+ public static byte VK_F19 = 0x82;
+ public static byte VK_F20 = 0x83;
+ public static byte VK_F21 = 0x84;
+ public static byte VK_F22 = 0x85;
+ public static byte VK_F23 = 0x86;
+ public static byte VK_F24 = 0x87;
+ public static byte VK_NUMLOCK = 0x90;
+ public static byte VK_SCROLL = 0x91;
+ public static byte VK_LSHIFT = 0xA0;
+ public static byte VK_RSHIFT = 0xA1;
+ public static byte VK_LCONTROL = 0xA2;
+ public static byte VK_RCONTROL = 0xA3;
+ public static byte VK_LMENU = 0xA4;
+ public static byte VK_RMENU = 0xA5;
+
+ public static byte VK_PROCESSKEY = 0xE5;
+
+ public static byte VK_ATTN = 0xF6;
+ public static byte VK_CRSEL = 0xF7;
+ public static byte VK_EXSEL = 0xF8;
+ public static byte VK_EREOF = 0xF9;
+ public static byte VK_PLAY = 0xFA;
+ public static byte VK_ZOOM = 0xFB;
+ public static byte VK_NONAME = 0xFC;
+ public static byte VK_PA1 = 0xFD;
+ public static byte VK_OEM_CLEAR = 0xFE;
+ #endregion VirtualKey
+
public static int MOD_ALT = 0x0001;
public static int MOD_CONTROL = 0x0002;
public static int MOD_SHIFT = 0x0004;
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2007-07-30 00:09:11 UTC (rev 88)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2007-07-31 08:23:27 UTC (rev 89)
@@ -172,6 +172,10 @@
<SubType>Designer</SubType>
<DependentUpon>PingTest.cs</DependentUpon>
</EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\RegisterHotKeyTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>RegisterHotKeyTest.cs</DependentUpon>
+ </EmbeddedResource>
<EmbeddedResource Include="Sandbox\SignalStrengthTest.resx">
<SubType>Designer</SubType>
<DependentUpon>SignalStrengthTest.cs</DependentUpon>
@@ -208,6 +212,10 @@
<SubType>Designer</SubType>
<DependentUpon>AlphaBlendTest.cs</DependentUpon>
</EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\AudioRecorderTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>AudioRecorderTest.cs</DependentUpon>
+ </EmbeddedResource>
<EmbeddedResource Include="UI\Controls\CalendarTest.resx">
<SubType>Designer</SubType>
<DependentUpon>CalendarTest.cs</DependentUpon>
@@ -421,6 +429,12 @@
<Compile Include="Sandbox\PingTest.Designer.cs">
<DependentUpon>PingTest.cs</DependentUpon>
</Compile>
+ <Compile Include="Sandbox\RegisterHotKeyTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\RegisterHotKeyTest.Designer.cs">
+ <DependentUpon>RegisterHotKeyTest.cs</DependentUpon>
+ </Compile>
<Compile Include="Sandbox\SignalStrengthTest.cs">
<SubType>Form</SubType>
</Compile>
@@ -484,6 +498,12 @@
<Compile Include="UI\Controls\AlphaBlendTest.Designer.cs">
<DependentUpon>AlphaBlendTest.cs</DependentUpon>
</Compile>
+ <Compile Include="UI\Controls\AudioRecorderTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\AudioRecorderTest.Designer.cs">
+ <DependentUpon>AudioRecorderTest.cs</DependentUpon>
+ </Compile>
<Compile Include="UI\Controls\CalendarTest.cs">
<SubType>Form</SubType>
</Compile>
Added: Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.Designer.cs
===================================================================
--- Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.Designer.cs (rev 0)
+++ Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.Designer.cs 2007-07-31 08:23:27 UTC (rev 89)
@@ -0,0 +1,89 @@
+namespace Roam.Test.Sandbox
+{
+ partial class RegisterHotKeyTest
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+ private System.Windows.Forms.MainMenu mainMenu1;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.mainMenu1 = new System.Windows.Forms.MainMenu();
+ this.menuItem1 = new System.Windows.Forms.MenuItem();
+ this.menuItem2 = new System.Windows.Forms.MenuItem();
+ this._menuItemRegisterHomekey = new System.Windows.Forms.MenuItem();
+ this._scrollableLabel = new Roam.UI.Controls.ScrollableLabel();
+ this.SuspendLayout();
+ //
+ // mainMenu1
+ //
+ this.mainMenu1.MenuItems.Add(this.menuItem1);
+ this.mainMenu1.MenuItems.Add(this.menuItem2);
+ //
+ // menuItem1
+ //
+ this.menuItem1.Text = "Exit";
+ this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
+ //
+ // menuItem2
+ //
+ this.menuItem2.MenuItems.Add(this._menuItemRegisterHomekey);
+ this.menuItem2.Text = "Menu";
+ //
+ // _menuItemRegisterHomekey
+ //
+ this._menuItemRegisterHomekey.Text = "Register Homekey";
+ this._menuItemRegisterHomekey.Click += new System.EventHandler(this._menuItemRegisterHomekey_Click);
+ //
+ // _scrollableLabel
+ //
+ this._scrollableLabel.Dock = System.Windows.Forms.DockStyle.Fill;
+ this._scrollableLabel.Location = new System.Drawing.Point(0, 0);
+ this._scrollableLabel.Name = "_scrollableLabel";
+ this._scrollableLabel.Size = new System.Drawing.Size(240, 266);
+ this._scrollableLabel.TabIndex = 0;
+ this._scrollableLabel.Text = "scrollableLabel1";
+ //
+ // RegisterHotKeyTest
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(131F, 131F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+ this.AutoScroll = true;
+ this.ClientSize = new System.Drawing.Size(240, 266);
+ this.Controls.Add(this._scrollableLabel);
+ this.Menu = this.mainMenu1;
+ this.Name = "RegisterHotKeyTest";
+ this.Text = "RegisterHotKeyTest";
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.MenuItem menuItem1;
+ private System.Windows.Forms.MenuItem menuItem2;
+ private System.Windows.Forms.MenuItem _menuItemRegisterHomekey;
+ private Roam.UI.Controls.ScrollableLabel _scrollableLabel;
+ }
+}
\ No newline at end of file
Added: Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.cs
===================================================================
--- Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.cs (rev 0)
+++ Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.cs 2007-07-31 08:23:27 UTC (rev 89)
@@ -0,0 +1,103 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using Microsoft.WindowsCE.Forms;
+using System.Runtime.InteropServices;
+
+namespace Roam.Test.Sandbox
+{
+ //http://blog.opennetcf.org/ayakhnin/PermaLink.aspx?guid=6f3656ec-b669-4a23-987a-a2455fbd2fc4
+ public partial class RegisterHotKeyTest : Form
+ {
+ private MessageWin _messageWin;
+
+ public RegisterHotKeyTest()
+ {
+ InitializeComponent();
+ _messageWin = new MessageWin();
+ _scrollableLabel.Clear();
+ }
+
+ private void _menuItemRegisterHomekey_Click(object sender, EventArgs e)
+ {
+ _menuItemRegisterHomekey.Checked = !_menuItemRegisterHomekey.Checked;
+ if (_menuItemRegisterHomekey.Checked)
+ {
+ _messageWin.HomeKeyPress += new EventHandler(_messageWin_HomeKeyPress);
+ }
+ else
+ {
+ _messageWin.HomeKeyPress -= new EventHandler(_messageWin_HomeKeyPress);
+ _messageWin.Dispose();
+ _messageWin = null;
+ }
+ }
+
+ void _messageWin_HomeKeyPress(object sender, EventArgs e)
+ {
+ _scrollableLabel.AddLine("HomeKeyPressed @ " + DateTime.Now);
+ }
+
+ private void menuItem1_Click(object sender, EventArgs e)
+ {
+ if (_messageWin != null)
+ {
+ _messageWin.HomeKeyPress -= new EventHandler(_messageWin_HomeKeyPress);
+ _messageWin.Dispose();
+ _messageWin = null;
+ }
+ this.Close();
+ }
+ }
+
+ public class MessageWin : MessageWindow
+ {
+ //event for client
+ public event System.EventHandler HomeKeyPress;
+
+ public MessageWin()
+ {
+ //register to listen for home key
+ RegisterHotKey(this.Hwnd, VK_LWIN, 8, VK_LWIN);
+ }
+
+ ~MessageWin()
+ {
+ UnregisterHotKey(this.Hwnd, VK_LWIN);
+ }
+
+ protected override void WndProc(ref Message m)
+ {
+ if (m.Msg == WM_HOTKEY)
+ {
+ if ((int)m.WParam == VK_LWIN)
+ //Raise event
+ if (HomeKeyPress != null)
+ HomeKeyPress(this, null);
+
+ }
+ base.WndProc(ref m);
+ }
+
+
+ #region P/Invokes
+ private const int VK_LWIN = 0x5B;
+ private const int WM_HOTKEY = 0x0312;
+ [DllImport("coredll.dll")]
+ public static extern bool RegisterHotKey(
+ IntPtr hWnd, // handle to window
+ int id, // hot key identifier
+ int Modifiers, // key-modifier options
+ int key //virtual-key code
+ );
+ [DllImport("coredll.dll")]
+ public static extern bool UnregisterHotKey(
+ IntPtr hWnd,
+ int id);
+ #endregion
+ }
+}
\ No newline at end of file
Added: Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.resx
===================================================================
--- Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.resx (rev 0)
+++ Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.resx 2007-07-31 08:23:27 UTC (rev 89)
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <metadata name="mainMenu1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>17, 17</value>
+ </metadata>
+ <metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
+ <value>Smartphone QVGA</value>
+ </metadata>
+ <metadata name="$this.Skin" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+</root>
\ No newline at end of file
Modified: Trunk/Source/Roam.UI/Controls/AudioRecorder.cs
===================================================================
--- Trunk/Source/Roam.UI/Controls/AudioRecorder.cs 2007-07-30 00:09:11 UTC (rev 88)
+++ Trunk/Source/Roam.UI/Controls/AudioRecorder.cs 2007-07-31 08:23:27 UTC (rev 89)
@@ -96,14 +96,14 @@
this.imageListBox1.ItemClicked += new EventHandler<VisualItemEventArgs>(OnAudioItemClicked);
//jeffixme these are temp graphics
- bitmap = new Bitmap(@"\Program Files\testphone\MediaRecord48x48.png");
- //imageItem = new ImageItem("Record", bitmap);
+ bitmap = new Bitmap(@"\Storage Card\MediaRecord48x48.png");
+ imageItem = new BitmapItem(bitmap, "Record");
imageItem.TextAlign = RelativeAlignment.Below;
imageListBox1.Items.Add(imageItem);
//jeffixme these are temp graphics
- bitmap = new Bitmap(@"\Program Files\testphone\MediaPlay48x48.png");
- //imageItem = new ImageItem("Play", bitmap);
+ bitmap = new Bitmap(@"\Storage Card\MediaPlay48x48.png");
+ imageItem = new BitmapItem(bitmap, "Play");
imageItem.TextAlign = RelativeAlignment.Below;
imageItem.Enabled = false;
imageListBox1.Items.Add(imageItem);
@@ -297,7 +297,7 @@
//jeffixme these are temp graphics
ImageItem imageItem = (ImageItem)imageListBox1.GetItemWithText("Pause").VisualItem;
- //imageItem.Image = new Bitmap(@"\Program Files\testphone\MediaPlay48x48.png");
+ imageItem.Image = new Bitmap(@"\Storage Card\MediaPlay48x48.png");
imageItem.Item = "Play";
EnableItem(0, true);
imageListBox1.Refresh();
@@ -373,7 +373,7 @@
OnRecordingStarted();
//jeffixme these are temp graphics
- //imageItem.Image = new Bitmap(@"\Program Files\testphone\MediaStop48x48.png");
+ imageItem.Image = new Bitmap(@"\Storage Card\MediaStop48x48.png");
imageItem.Item = "Stop";
imageListBox1.Refresh();
}
@@ -382,7 +382,7 @@
_recorder.Stop();
//jeffixme these are temp graphics
- //imageItem.Image = new Bitmap(@"\Program Files\testphone\MediaRecord48x48.png");
+ imageItem.Image = new Bitmap(@"\Storage Card\MediaRecord48x48.png");
imageItem.Item = "Record";
EnableItem("Play", true);
@@ -406,7 +406,7 @@
EnableItem("Record", false);
//jeffixme these are temp graphics
- //imageItem.Image = new Bitmap(@"\Program Files\testphone\MediaPause48x48.png");
+ imageItem.Image = new Bitmap(@"\Storage Card\MediaPause48x48.png");
imageItem.Item = "Pause";
imageListBox1.Refresh();
@@ -419,7 +419,7 @@
EnableItem("Record", true);
//jeffixme these are temp graphics
- //imageItem.Image = new Bitmap(@"\Program Files\testphone\MediaPlay48x48.png");
+ imageItem.Image = new Bitmap(@"\Storage Card\MediaPlay48x48.png");
imageItem.Item = "Play";
imageListBox1.Refresh();
Modified: Trunk/Source/Roam.suo
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|