Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Remote form vertical scroll bar

  • Remote form vertical scroll bar

    Posted by Obonye on September 10, 2024 at 11:50 am

    Hi everyone,

    I have created a button component at the top of a remote form. I have a subwindow object below it. If the form assigned to the subwindow is bigger than the main form, the main form automatically enables a vertical scroll bar for the user to scroll down to the bottom of the form. As you scroll down, the button component at the top of the window moves out of view. Is there a way I can fix an object to a particular position like to remain at the top but allow vertscroll in the window to scroll down? I have set the $vertscroll property of the object to kfalse but still the remote form has a scroll bar when you test the window and the button object get hidden.

    Kind regards,

    Martin O.

    Andreas Pfeiffer replied 10 months, 3 weeks ago 2 Members · 5 Replies
  • 5 Replies
  • Andreas Pfeiffer

    Administrator
    September 10, 2024 at 12:00 pm

    Hi Martin,

    How about making the subform field using as much as space as possible?

    You could do the following:

    1. Add a container and give it $edgefloat=kEFPosnTopToolbar
    2. Place your buttons into that controller
    3. Make $edgefloat of the subform kEFPosnClient

    That way the subform will use the entire space but the container will give you space for your controls.

    Does that help?

    Best,

    Andreas

    • Obonye

      Member
      September 11, 2024 at 2:10 pm

      Hi @andreas-pfeiffer

      If I change the edgefloat properties of the objects, the vertical scroll disappears, and the other form panels are not visible.

      See the attached sample library.

      Martin.

      • Andreas Pfeiffer

        Administrator
        September 11, 2024 at 2:35 pm

        Martin,

        So what is the question?

        Best,

        Andreas

        • Obonye

          Member
          September 11, 2024 at 2:37 pm

          Hi Andreas,

          I want to be able to scroll down the subwindow and see the panels hidden below.

          Martin.

        • Andreas Pfeiffer

          Administrator
          September 11, 2024 at 4:48 pm

          Martin,

          obviously you would need to adapt the components inside your subform as well. Attached please find a 10.22 library. I changed the following:

          1. added a container field (page pane) in the superclass that will hold the back button and assigned $edgefloat=kEFTopToolbar
          2. made the $edgefloat for the page pane that will hold the subformset panel to kEFPosnClient
          3. switched on $autoscroll of the page pane that holds the subformset panel
          4. Overrode the $init method of the first subform to set the cursor in the first field

          The latter is necessary as otherwise the last subform (number 4) will receive the cursor and thus it scrolls so that the first few panels cannot be seen.

          Best,

          Andreas

Log in to reply.