TsListbox custom WindowProc lost after clear

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #59183
    Support
    Keymaster

      Hi

      Thank you for the demo. I will check it and I hope to find a solution at the nearest few days.

      Another topic should be deleted, I think.

      #59206
      Support
      Keymaster

        Here is a changed program, look it please.

        Changed code was marked with “// Serge”

        #59218
        JM-DG
        Participant
          'Support' wrote:

          Here is a changed program, look it please.

          Changed code was marked with “// Serge”

          I see that you reset the wndproc after each “clear”.

          It seems that I also have to do a reset after having removed all items in the list using the remove button.

          I noticed that I don't need this reset after the list is emptied if I initialize my custom windowproc before adding items in the list in the FormCreate event.

          But when I try it in my real application the behavior changes. Even if I initialize my custom windowproc at the start, I have to do resets every clear.

          The behavior seem inconsistant as to why & when we're losing our custom wndproc.

          #59222
          Support
          Keymaster

            I will try to disable this code which recreates the control when “Clear” is called.

            New release with changes will be available soon.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.