SetEditorMode - Example C#

[Top]  [Chapter]  [Previous]  [Next]

Example C#

 

This image shows initialization code written in C# (VS 2005). We had simply dropped a WPDLLInt control on the form and changed its name to "WPDLLInt1"

 

       

using System.Text;

using System.Windows.Forms;

using WPDynamic; // reference to the TextDynamic wrapper

 

namespace WindowsApplication1

{

  public partial class Form1 : Form

   {

      public Form1()

       {

        WPDLLInt.SetDLLName("{hkcu}Software\\WPCubed\\TextDynamic\\path");

 

           InitializeComponent();

          // 1.) Set the Editor Mode

           WPDLLInt1.SetEditorMode

           (

            EditorMode.wpmodDoubleEditor,

            EditorXMode.wpmodexToolbarLG, // = ModeX

            EditorGUI.wpguiHorzScrollBar | // = GUI of upper Editor

            EditorGUI.wpguiPanelH1 | EditorGUI.wpguiPanelV1 |

            EditorGUI.wpguiPanelV2 | EditorGUI.wpguiRuler |

            EditorGUI.wpguiVertRuler | EditorGUI.wpguiVertScrollBar

             , EditorGUI.wpguiVertScrollBar // = GUI of lower Editor

           );

          // 2.) Load the PCC file

           WPDLLInt1.SetLayout("..\\buttons.pcc", "");

 

 


[example_c.htm]    Copyright © 2007 by WPCubed GmbH