Example #1
0
        public void UpdateTextStr(string myText, Font myFont)
        {
            if (mText == null)
            {
                mText       = new TextDetail();
                mText.text  = myText;
                mText.ctr.X = (HPPnl.Width / 2);
                mText.ctr.Y = (HPPnl.Height / 2);
            }
            else
            {
                mText.text   = myText;
                mText.myFont = myFont;
            }

            HPPnl.Refresh();
        }
Example #2
0
        public void AddTextStr()
        {
            if (mText == null)
            {
                return;
            }

            mText.Intensity = mPenIntensity;
            TextStr.Add(mText);

            LastAddedItems tmpItem = new LastAddedItems();

            tmpItem.ShapeType = 12;
            tmpItem.shapeIdx  = TextStr.Count() - 1;
            LastAddIdx.Add(tmpItem);

            mText = null;

            HPPnl.Refresh();
        }