C2022-003-Change-Textboxes-to-RTF-3
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user