I am currently trying to create a text box in Visual Components where I can input text and print it. My program doesn’t show any syntax errors, but I’m unable to achieve the desired functionality. Could you please guide me or provide a tutorial on how to accomplish this? Your assistance would be greatly appreciated!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.Composition;
using VisualComponents.Create3D;
using Caliburn.Micro;
using VisualComponents.UX.Shared;
using VisualComponents.UX.Shared.Reflection;
namespace textbox
{
[Export(typeof(IPlugin))]
public class Class1 : IPlugin
{
//[Import] private Lazy app = null;
void IPlugin.Exit()
{
}
void IPlugin.Initialize()
{
//ISimWorld simworld = app.Value.World;
VcEditableTextBox _vcEditableTextBox = new VcEditableTextBox();
_vcEditableTextBox.Width = 50000;
string a = _vcEditableTextBox.Text;
IMessageService ms = IoC.Get<IMessageService>();
ms.AppendMessage(a, MessageLevel.Warning);
}
}
}