Announcement

Collapse
No announcement yet.

Listbox Scrolling Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Listbox Scrolling Problem

    Hi, I'm following the ListBox example and trying to implement it with the Form Switch example. But when I scroll the ListBox, the ListBox produces lots of artifact which hides the new text and makes it unreadable.

    I have tried a solution where I would create a new box when the text would update but that causes a flicker when scrolling.

    How would I clear the contents inside the ListBox? (Or any other solution)

    Thanks Leo

    Examples used:
    4D-CD-00024 Designer ListBox https://forum.4dsystems.com.au/node/45814


    AN-00201 ViSi Form Switch https://4dsystems.com.au/blog/4d-an-00201/



  • #2
    Hi,

    Good Day.

    Welcome to the forum.
    How did you implement the listbox into your form switch example? It will be better if you will attach your project here for us to verify.

    Thank you.

    Best Regards,
    Ferdinand

    Comment


    • #3
      Hi,

      The way I implemented the listbox into the form switch was by putting the listbox fuction call into the TestForm() function. The return doesn't work as the program is stuck the listbox loop, but I can fix that.

      Regards

      Leo
      Attached Files

      Comment


      • #4
        So I've just implemented the to examples together (rather than use my modified code) and no artifacts were generated, so it could be something I removed from the code

        Comment


        • #5
          It looks like my problem was due to the fonts I used, and I set the text to transparent showing the artifacts.

          Edit: It was Opacity, not BGColour
          Last edited by LFung; 4 March 2020, 06:31 PM.

          Comment


          • #6
            Hi,

            Good Day.

            Thank you for the file that you send.
            Good to know that you already identify the one that produces the artifact.
            Try to set txt_Opacity to OPAQUE


            Code:
            Txt_Opacity(OPAQUE);


            Best Regards,

            Comment


            • #7
              Hi,

              Fixed now!
              Thanks for your help

              Regards
              Leon

              Comment

              Working...
              X