Results 1 to 40 of 4215

Thread: CommonControls (Replacement of the MS common controls)

Hybrid View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,742

    Re: CommonControls (Replacement of the MS common controls)

    Important update released fixing the following issue:

    Quote Originally Posted by dreammanor View Post
    When I create TreeView Control dynamically, the control can not fire 'NodeClick' event, such as:

    Set TreeView1 = Me.Controls.Add("Project1.TreeView", "TreeView1")
    The issue was that on dynamically added controls only the "InitProperties" event in the UserControl is fired. Problem was that on some controls the UserControl.hWnd was not subclassed and thus caused some lacks of functionality. Like in your case with 'NodeClick' event not firing. This has been fixed by subclassing the UserControl.hWnd also in the "InitProperties" and not only in the "ReadProperties" event on run-time.

  2. #2
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    Important update released fixing the following issue:



    The issue was that on dynamically added controls only the "InitProperties" event in the UserControl is fired. Problem was that on some controls the UserControl.hWnd was not subclassed and thus caused some lacks of functionality. Like in your case with 'NodeClick' event not firing. This has been fixed by subclassing the UserControl.hWnd also in the "InitProperties" and not only in the "ReadProperties" event on run-time.
    The issue has been solved. thank Krool very much !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width