コード例 #1
0
        private void set_stereo(object o, EventArgs ev)
        {
            if ((o as FlatMenuItem).Index == 0)
            {
                Rectangle r = obj.EditRect;
                InPlaceTextEdit.Start("Edit stereotype", obj.Stereo, parent.cview.point_to_screen(r.X, r.Y), Math.Max(r.Width, 70), r.Height, parent.cview, new StringEditedEvent(EditedStereo), false);
                return;
            }

            if ((o as FlatMenuItem).Index >= 3)
            {
                obj.Stereo = hashed_stereo_list[(o as FlatMenuItem).Index - 3];
            }
            else if ((o as FlatMenuItem).Index == 1)
            {
                obj.Stereo = null;
            }
        }
コード例 #2
0
ファイル: GuiMemo.cs プロジェクト: presscad/BaseLayer
 public void RenameClick(object o, EventArgs ev)
 {
     InPlaceTextEdit.Start("Edit memo text", text, parent.cview.point_to_screen(place.X + inflate + 1, place.Y + inflate + 1), Math.Max(place.Width + 20, 70), place.Height + 40, parent.cview, new StringEditedEvent(Edited), true);
 }
コード例 #3
0
 public void RenameClick(object o, EventArgs ev)
 {
     InPlaceTextEdit.Start("Rename", Text, parent.cview.point_to_screen(place.X, place.Y), Math.Max(place.Width + 20, 70), place.Height, parent.cview, new StringEditedEvent(Edited), false);
 }
コード例 #4
0
ファイル: GuiClass.cs プロジェクト: presscad/BaseLayer
        public void RestoreName(object v, EventArgs e)
        {
            Rectangle r = new Rectangle(place.X + inflate + 1, place.Y + inflate + 1, place.Width, 0);

            InPlaceTextEdit.Start("Enter new name", name, parent.cview.point_to_screen(r.X, r.Y), Math.Max(r.Width, 70), r.Height, parent.cview, new StringEditedEvent(EditedName), false);
        }
コード例 #5
0
        public void Rename_click(object o, EventArgs ev)
        {
            Rectangle r = new Rectangle(place.X + inflate + 1, place.Y + inflate + 1, title_width, 0);

            InPlaceTextEdit.Start("Change name", name, parent.cview.point_to_screen(r.X, r.Y), Math.Max(r.Width, 70), r.Height, parent.cview, new StringEditedEvent(EditedName), false);
        }