TRzListView infoTip firing without delay

Home Forums Konopka Signature VCL Controls (formerly Raize Components) TRzListView infoTip firing without delay

Viewing 4 reply threads
  • Author
    Posts
    • #2414
      gilleslabelle
      Participant

        Hello

        I have a RzListView in report mode with checkboxes. I filled some lines and has soon I passe over any lines the ListView1DrawItem event is fired immediatly. Is there a way to prevent this?

         

      • #2415
        Ray Konopka
        Keymaster

          Hi,

          The OnDrawItem event in TRzListView is inherited from the TListView control. That is, the event is generated by the inherited behavior of the TListView (and more precisely, the TCustomListView) class. According to the Help for TListView, the OnDrawItem event only fires when CustomDraw is also set to true. You may wish to take a look at the other drawing related events such as OnAdvancedCustomDraw, OnAdvancedCustomDrawItem, etc.

          Ray

        • #2418
          gilleslabelle
          Participant

            Hello sorry for the error in my mesage. It’s the ListView1InfoTip event that is fired immediatly,

          • #2420
            Ray Konopka
            Keymaster

              The TRzListView implements a slightly different hinting support originally added to provide better support for the TRzBalloonHints component. The issue was that hinting in the base TListView did not handle custom regions (as used by balloon hints).
              Unfortunately, there is no property that controls that behavior. To prevent the OnInfoTip event from firing, you would have to modify the source code for the TRzListView.
              Is the frequent calling of the OnInfoTip event causing an issue? What are you doing in the OnInfoTip event handler?

              Ray

            • #2424
              gilleslabelle
              Participant

                Since I am not using the TRzBalloonHints, I  have modified the source and removed the DoHint calls and it resolved my problem.

                 

                Thanks.

            Viewing 4 reply threads
            • You must be logged in to reply to this topic.