C2022-003-Change-Textboxes-to-RTF-3
This commit is contained in:
1 parent
d4ecf28147
commit
72c2bd90e4
10 files changed
+8
-329
No files matched your search
@@ -302,14 +302,10 @@ using Org.Mentalis.Files;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
//using Volian.Controls.Library;
|
||||
using Volian.Base.Library;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using System.Xml;
|
||||
using System.Drawing.Text;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Text.RegularExpressions;
|
||||
//using IniFileIO;
|
||||
|
||||
namespace ROEditor
|
||||
{
|
||||
@@ -1187,18 +1183,6 @@ namespace ROEditor
|
||||
menuROSave.Enabled = rbtnSave.Enabled;
|
||||
}
|
||||
|
||||
public void RTBSymbolsOnOff(string nm)
|
||||
{
|
||||
string RO_IDENDITY = RO_IDEN.Substring(1, RO_IDEN.Length - 2);
|
||||
if (this.CurrentTextBox.Name == RO_IDENDITY)
|
||||
{
|
||||
rbtnSymbols.Enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
rbtnSymbols.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void EnableDisableSymbolsBtn(object sender, ctlXMLEditEventArgs args)
|
||||
{
|
||||
@@ -1212,8 +1196,6 @@ namespace ROEditor
|
||||
}
|
||||
}
|
||||
|
||||
//EnableDisableSymbolsBtn(sender, new ctlXMLEditEventArgs(args.idName));
|
||||
|
||||
protected void ctlXMLEdit2_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (CurrentTextBox != null)
|
||||
@@ -1378,10 +1360,6 @@ namespace ROEditor
|
||||
this.tbar = new System.Windows.Forms.ToolBar();
|
||||
this.imageListToolBar = new System.Windows.Forms.ImageList(this.components);
|
||||
this.lblDuplicateRO = new System.Windows.Forms.Label();
|
||||
this.galleryContainerSymbolsCM = new DevComponents.DotNetBar.GalleryContainer();
|
||||
this.galleryContainerSymbolsCM3 = new DevComponents.DotNetBar.GalleryContainer();
|
||||
this.galleryContainerSymbolsGrid = new DevComponents.DotNetBar.GalleryContainer();
|
||||
this.galleryContainerSymbolsCM4 = new DevComponents.DotNetBar.GalleryContainer();
|
||||
this.ribbonControl1.SuspendLayout();
|
||||
this.ribbonPanel1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
@@ -1835,84 +1813,11 @@ namespace ROEditor
|
||||
this.lblDuplicateRO.Text = "Working With Duplicate RO";
|
||||
this.lblDuplicateRO.Visible = false;
|
||||
//
|
||||
// galleryContainerSymbolsCM
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.galleryContainerSymbolsCM.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.galleryContainerSymbolsCM.DefaultSize = new System.Drawing.Size(156, 95);
|
||||
this.galleryContainerSymbolsCM.EnableGalleryPopup = false;
|
||||
this.galleryContainerSymbolsCM.GlobalName = "SymbolGallery";
|
||||
this.galleryContainerSymbolsCM.MinimumSize = new System.Drawing.Size(150, 95);
|
||||
this.galleryContainerSymbolsCM.Name = "galleryContainerSymbolsCM";
|
||||
this.galleryContainerSymbolsCM.Text = "galleryContainer1";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.galleryContainerSymbolsCM.TitleMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.galleryContainerSymbolsCM.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
// galleryContainerSymbolsCM3
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.galleryContainerSymbolsCM3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.galleryContainerSymbolsCM3.DefaultSize = new System.Drawing.Size(156, 95);
|
||||
this.galleryContainerSymbolsCM3.EnableGalleryPopup = false;
|
||||
this.galleryContainerSymbolsCM3.MinimumSize = new System.Drawing.Size(150, 95);
|
||||
this.galleryContainerSymbolsCM3.Name = "galleryContainerSymbolsCM3";
|
||||
this.galleryContainerSymbolsCM3.Text = "galleryContainer1";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.galleryContainerSymbolsCM3.TitleMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.galleryContainerSymbolsCM3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
// galleryContainerSymbolsGrid
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.galleryContainerSymbolsGrid.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.galleryContainerSymbolsGrid.DefaultSize = new System.Drawing.Size(156, 95);
|
||||
this.galleryContainerSymbolsGrid.EnableGalleryPopup = false;
|
||||
this.galleryContainerSymbolsGrid.GlobalName = "SymbolGallery";
|
||||
this.galleryContainerSymbolsGrid.MinimumSize = new System.Drawing.Size(150, 95);
|
||||
this.galleryContainerSymbolsGrid.Name = "galleryContainerSymbolsGrid";
|
||||
this.galleryContainerSymbolsGrid.Text = "galleryContainer1";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.galleryContainerSymbolsGrid.TitleMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.galleryContainerSymbolsGrid.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
// galleryContainerSymbolsCM4
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.galleryContainerSymbolsCM4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.galleryContainerSymbolsCM4.MinimumSize = new System.Drawing.Size(58, 58);
|
||||
this.galleryContainerSymbolsCM4.Name = "galleryContainerSymbolsCM4";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.galleryContainerSymbolsCM4.TitleMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.galleryContainerSymbolsCM4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
@@ -1947,11 +1852,7 @@ namespace ROEditor
|
||||
private DevComponents.DotNetBar.ButtonItem rbtnZoom;
|
||||
private DevComponents.DotNetBar.ButtonItem rbtnSymbols;
|
||||
private DevComponents.DotNetBar.ButtonItem rbtnSave;
|
||||
private DevComponents.DotNetBar.GalleryContainer galleryContainerSymbolsCM;
|
||||
private DevComponents.DotNetBar.GalleryContainer galleryContainerSymbols;
|
||||
private DevComponents.DotNetBar.GalleryContainer galleryContainerSymbolsCM3;
|
||||
private DevComponents.DotNetBar.GalleryContainer galleryContainerSymbolsGrid;
|
||||
private DevComponents.DotNetBar.GalleryContainer galleryContainerSymbolsCM4;
|
||||
private DevComponents.DotNetBar.GalleryContainer galSymbols;
|
||||
|
||||
|
||||
@@ -3312,7 +3213,6 @@ namespace ROEditor
|
||||
DevComponents.DotNetBar.ButtonItem btn = new DevComponents.DotNetBar.ButtonItem();
|
||||
btn.Image = symCharBtmp;
|
||||
|
||||
//btnCM.Text = string.Format("{0}", SymbolNode.SelectSingleNode("unicode").InnerText);
|
||||
btn.Text = string.Format("{0}", ROSymbol.Key);
|
||||
|
||||
// to name button use unicode rather than desc, desc may have spaces or odd chars
|
||||
@@ -3323,7 +3223,6 @@ namespace ROEditor
|
||||
btn.FontBold = true;
|
||||
btn.Click += new System.EventHandler(rbtnSymbols_Click);
|
||||
galleryContainerSymbols.SubItems.Add(btn);
|
||||
////galleryContainerSymbols
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3453,7 +3352,6 @@ namespace ROEditor
|
||||
// later on, we could add logic to use either FreeMono or Arial Unicode MS based on the format being used
|
||||
// but for now, we are going to use FreeMono to create the symbol list
|
||||
Font objFont = new Font("FreeMono", 18, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
|
||||
//Font objFont = new Font("Arial Unicode MS", 18, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
|
||||
|
||||
// Create a graphics object to measure the text's width and height.
|
||||
Graphics objGraphics = Graphics.FromImage(objBmpImage);
|
||||
@@ -3473,24 +3371,11 @@ namespace ROEditor
|
||||
objGraphics.SmoothingMode = SmoothingMode.AntiAlias;
|
||||
objGraphics.TextContrast = 0;
|
||||
objGraphics.TextRenderingHint = TextRenderingHint.AntiAlias;
|
||||
//objGraphics.DrawString(txt, objFont, new SolidBrush(Color.FromArgb(102, 102, 102)), 0, 0);
|
||||
objGraphics.DrawString(txt, objFont, new SolidBrush(Color.Black), 0, 0);
|
||||
objGraphics.Flush();
|
||||
return (objBmpImage);
|
||||
}
|
||||
private void btnSym_Click(object sender, EventArgs e)
|
||||
{
|
||||
DevComponents.DotNetBar.ButtonItem b = (DevComponents.DotNetBar.ButtonItem)sender;
|
||||
|
||||
//if (cbxTextSearchAnnotation.Focused)
|
||||
//{
|
||||
// cbxTextSearchAnnotation.SelectedText = (string)b.Text;
|
||||
//}
|
||||
//else if (cbxTextSearchText.Focused)
|
||||
//{
|
||||
// cbxTextSearchText.SelectedText = (string)b.Text;
|
||||
//}
|
||||
}
|
||||
// This class is used to sort by the selected list view column
|
||||
public class MyListViewComparer : IComparer
|
||||
{
|
||||
|
||||
@@ -128,14 +128,6 @@
|
||||
<Reference Include="System.Xml">
|
||||
<Name>System.XML</Name>
|
||||
</Reference>
|
||||
<Reference Include="VEPROMS.CSLA.Library, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\VEPROMS.CSLA.Library\bin\Debug\VEPROMS.CSLA.Library.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Volian.Base.Library, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\Volian.Base.Library\bin\Debug\Volian.Base.Library.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AboutROEditor.cs">
|
||||
|
||||
@@ -101,7 +101,6 @@ using System.Runtime.InteropServices;
|
||||
using VlnStatus;
|
||||
using System.Collections.Specialized;
|
||||
using ROFST_FILE;
|
||||
using Volian.Base.Library;
|
||||
|
||||
//using VlnProfiler; //don't forget to add VlnProfiler to the reference list
|
||||
|
||||
|
||||
@@ -42,8 +42,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CmpRpt", "..\CmpRpt\CmpRpt.
|
||||
{3A4A3543-2D44-11D6-8452-00A0CC271352} = {3A4A3543-2D44-11D6-8452-00A0CC271352}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D9093FAB-448E-47C7-961B-92B18D85CAF7}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
||||
Reference in new issue
Block a user