Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Multiple CScrollViews in the same app

Multiple CScrollViews in the same app

Scheduled Pinned Locked Moved Mobile
algorithmshelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VanHlebar
    wrote on last edited by
    #1

    I have an application that has multiple CScrollViews defined in it. Everything works just fine in the one CScrollView right up to the point that I have to have scrollbars in the second view. At this point then neither scroll bar performs correctly. I have set the properties of each scroll bar seperately in each views OnInitialUpdate() method. In these methods I calculate the vertical range of the scroll bars. Each view has its own OnVScroll method. When I only have a single scroll bar set in a view then I can reach both the upper limits and the lower limits of the scroll bar. However, when the second view comes into view and the scroll bar is set up I can no longer reach the lower limits of the first scroll bar. Are these two views using any shared properties? Any ideas on where to start searching for the bug? Thanks, -Eric

    J 1 Reply Last reply
    0
    • V VanHlebar

      I have an application that has multiple CScrollViews defined in it. Everything works just fine in the one CScrollView right up to the point that I have to have scrollbars in the second view. At this point then neither scroll bar performs correctly. I have set the properties of each scroll bar seperately in each views OnInitialUpdate() method. In these methods I calculate the vertical range of the scroll bars. Each view has its own OnVScroll method. When I only have a single scroll bar set in a view then I can reach both the upper limits and the lower limits of the scroll bar. However, when the second view comes into view and the scroll bar is set up I can no longer reach the lower limits of the first scroll bar. Are these two views using any shared properties? Any ideas on where to start searching for the bug? Thanks, -Eric

      J Offline
      J Offline
      Joao Paulo Figueira
      wrote on last edited by
      #2

      My first option would be to look into the view updating mechanism. Is it possible that one view is being updated (via OnUpdate) with data that is meant for the other? Regards, João Paulo

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups