The below code is written for the POS Display Unit. I want to scroll the text in the display. I have tried the Marquee and Scroll properties. But It's not working. I've found that device not supported for Marquee. But I must do it. I heard that using timers it can be possible even the device not supporting Marquee. Can anyone help me on this?
Thanks in advance.
using Microsoft.PointOfService;
private const string WelcomeMessage = "Welcome to Restaurant\r\n";
private PosExplorer posExplorer;
private LineDisplay posLineDisplay;
private DeviceInfo posLineDisplaydevice;
public void LineDisplayUnit()
{
this.posExplorer = new PosExplorer(this);
this.posLineDisplaydevice = this.posExplorer.GetDevice("LineDisplay", "POSIFLEX_LINEDISPLAY");
try
{
this.posLineDisplay = (LineDisplay)this.posExplorer.CreateInstance(this.posLineDisplaydevice);
this.posLineDisplay.Open();
this.posLineDisplay.Claim(1000);
this.posLineDisplay.DeviceEnabled = true;
this.posLineDisplay.DisplayText(WelcomeMessage);
this.posLineDisplay.DisplayTextAt(2, 1, this.LeftAlign("Amount", 7) + this.RightAlign(this.GrandTotalAmount.ToString("0.00"), 12));
this.posLineDisplay.Close();
}
catch (Exception)
{
}
}