0

ポール ディスプレイでテキストをスクロールしようとしています。私のポール ディスプレイ モデルはCD7220 ですが、「プロパティ MarqueeType の設定に失敗しました」という PosControlException メッセージが表示されます。

ここに私が使用するコードがあります

LineDisplay lineDisplay;
        PosExplorer explorer;
        try
        {

            explorer = new PosExplorer();
            DeviceCollection devColl = explorer.GetDevices(DeviceType.LineDisplay);
            if (devColl == null || devColl.Count <= 0)
            {
                Console.WriteLine("Device not found");
                return;
            }

            DeviceInfo device = explorer.GetDevice("LineDisplay", "CD7220");
            lineDisplay = (LineDisplay)explorer.CreateInstance(device);
             lineDisplay.Open();

            lineDisplay.Claim(1000);

            lineDisplay.DeviceEnabled = true;


            string s = "Welcome to ovelco food city!";
            int wWindth = s.Length + 20;

            lineDisplay.CreateWindow(0, 0, 1, 20, 1, wWindth);
            lineDisplay.DisplayText(s);
            lineDisplay.MarqueeType = DisplayMarqueeType.Left;
            lineDisplay.MarqueeUnitWait = 200; 
            lineDisplay.MarqueeFormat = DisplayMarqueeFormat.Walk;

            Console.ReadKey();
            lineDisplay.ClearText();
            lineDisplay.Release();
            lineDisplay.Close();

        }
        catch (Exception e)
        {
            //  MessageBox.Show(e.Message);
            Console.WriteLine(e.Message);
        }

この問題を修正し、ポール表示でテキストを完全にスクロールするにはどうすればよいですか?

前もって感謝します。

4

1 に答える 1