LISTBOX_EnableMotion has no effect

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • LISTBOX_EnableMotion has no effect

      Hello to all,

      We use emWin 6.32.

      I can enable vertical motion in a ListView using LISTVIEW_EnableMotion() with no problem.
      However if I want to do the same with a ListBox it does not work. (with LISTBOX_EnableMotion)
      The ListBox contains many text lines, so it does not fit into one page.
      Therefore I expected the ListBox to shift the contents vertically when I slide over it.


      In order to proof that nothing in my environment for the ListBox is wrong, I replaced the ListBox by a ListView widget as a test.
      I sort of downgraded the ListView widget to show only text lines in one column and disregarded the header.
      If I do it like this everything works perfect!

      So I am suspicious whether the LISTBOX is working with motion support at all?
      How is a LISTBOX supposed to react when sliding for the other contents which is below the screen?

      Thanks for a short reply
      Andy
    • Hello,

      what MCU are you using? I faced the same problem with STM32H7 MCU using precompiled object library v6.46. LISTBOX and LISTVIEW AppWizard controls (as well as those legacy widgets) are processing the motion perfectly in simulation but not on real hardware (sort of invalidation problem when redrawing after swipe). I even disabled on-chip 2D-accelerator to ensure the problem is not the hardware.

      At the same time WHEEL object (and also WHEEL widget) processing the motion in right way (both horizontal and vertical), like this...
      Regards,

      Anthony
    • Hello Anthony,

      I am using the STM32F7267.
      But I don´t think it is a matter of MCU. I think the LISTBOX is just not at the development level as is LISTVIEW.
      If you look in the manual the funtion LISTVIEW_EnableMotion(), you will find a comment, that there is no problem to use it with the new SCROLLER widgets.
      If you look in the manual the funtion LISTBOX_EnableMotion(), there is no comment regarding the SCROLLER widgets, just the hint that it does not work with the old SCROLLBAR widgets.
      Therefore it could be that the LISTBOX is not ready yet for motion...

      Anyhow I kicked out all my ListBoxes and replaced them with LISTView´s with HeaderHeight=0 and all workes fine. There is no difference in the look.

      Regards
      Andy
    • Hello, Andy,

      strange but somehow LISTBOX started processing the motion whereas LISTVIEW still not performing right. Maybe there is a problem with memory cache at the frame buffer area. I will deal...

      In fact I also prefer to use LISTVIEWs instead of LISTBOXes as it is more flexible in their settings.
      Regards,

      Anthony