Example #1
0
            /*! \brief Create a Toolbox Window from an object that already exists.
             * \param [in] objectID The Toolbox ID of the existing object.  */
            public Window(uint objectID) : base(objectID)
            {
                WimpWindow = new Wimp.WindowHandle(WimpHandle);
                IntPtr template = Toolbox.TemplateLookup(TemplateName);

                RetrieveEventCodes(template);
            }
Example #2
0
 //! \brief Create a toolbox window from the template object given.
 public Window(WindowTemplate template)
 {
     template.CreateBuffer();
     Create(template.Buffer);
     WimpWindow = new Wimp.WindowHandle(WimpHandle);
     RetrieveEventCodes(template.Buffer);
 }
Example #3
0
            /*! \brief Create a toolbox window from the named template in the
             * Resource file.
             * \param[in] resName The name of the window template to use.  */
            public Window(string resName) : base(resName)
            {
                WimpWindow = new Wimp.WindowHandle(WimpHandle);

                IntPtr template = Toolbox.TemplateLookup(resName);

                RetrieveEventCodes(template);
            }
Example #4
0
 /*! \brief Create a toolbox window from the template data given.
  * \param[in] templateData Pointer to the window template.  */
 public Window(IntPtr templateData)
 {
     Create(templateData);
     WimpWindow = new Wimp.WindowHandle(WimpHandle);
     RetrieveEventCodes(templateData);
 }