8 Replies Latest reply: Jun 24, 2014 6:22 AM by sfr.farhan RSS

    Stacked Canvas

    salute-Salem

      hi ,

      when do i need to use a Stacked canvas ?

      2- can not i use the content canvas in place of it ?

       

      thanks

        • 1. Re: Stacked Canvas
          sfr.farhan

          1. Stack canvas can be place over on content canvas but you can not place content canvas over stack

          2. Stack canvas can hold content and provide the view over content canvas which you can show / hide on run-time, set location at run-time or provide

              horizontal / vertical scroll bar etc

          3. let say you have 10 detail column on a form which can not accommodate on screen, in order to handle this scenario you can use stack canvas, to provide small view but can be scroll horizontally

          • 2. Re: Stacked Canvas
            salute-Salem

            so helpful , but please tell me the steps needed to create a stack canvas with horizontal scroll bar , because

            i tried to create it , but the content is not displayed , only the stacked is displayed , and i can not scroll horizontally ,

            because the block which i created should be contained in the stack canvas otherwise i would face

            the "content is placed off the canvas" error

            ??

            • 3. Re: Stacked Canvas
              sfr.farhan

              For example:

               

              Let say you have a form with detail block which having 10 fields (column) with 6 rows.

               

              1. initially all fields on Content Canvas

               

              Col 1

              Col 2

              Col 3

              Col 4

              Col 5

              Col 6

              Col 7

              Col 8

              Col 6

              Col 10

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

              2. let's say you want to move last 7 fields on stack canvas and show Col 1 to Col 7 without scrolling. so, in order achieve that, you need to draw stack canvas on content canvas over the fields, as highlighted in grey, and set stack canvas horizontal scroll bar property Yes.

               

              Col 1

              Col 2

              Col 3

              Col 4

              Col 5

              Col 6

              Col 7

              Col 8

              Col 6

              Col 10

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

              and then select Col 4 to Col 10 to change the canvas property to newly created stack canvas, adjust the location of the fields on stack canvas (mostly start from top left corner of stack canvas).

              you can not scroll at this design time, when you will run the screen then horizontal scroll bar visible to view Col 8, Col 9 and Col 10

               

              Col 1

              Col 2

              Col 3

              Col 4

              Col 5

              Col 6

              Col 7

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

               

              Note: please make sure when form run first focus should be Col 1 because focus should be on the item which is on content canvas.

              • 4. Re: Stacked Canvas
                salute-Salem

                but how to scroll horizontally , or why ? if the column are all on the stack canvas ? scroll what ?

                • 5. Re: Stacked Canvas
                  sfr.farhan

                  as per above example, col 1 to col 3 are on content canvas while col 4 to col 10 are on stack canvas,

                  horizontal scroll bar appear because of col 8 to col 10 because these columns are not visible, in order to view these columns

                  user should use horizontal scroll bar.

                  In addition, If user move horizontal bar right n left or left to right then col 4 to col 10 scroll because it is on stack canvas and stack is scrolling as horizontal scroll moving,

                   

                  if you didn't get the idea, I'll share some image for your understanding.

                  • 6. Re: Stacked Canvas
                    sfr.farhan

                    Please see following snapshot for your clarity, i hope, it will help you.

                     

                    Snapshot 1

                    http://iv.pl/images/02358205111126256841.png

                    Snapshot 2

                    http://iv.pl/images/84002416760271232516.png

                     

                    in addition, This behavior is similar to the feature in MS Excel, freeze some columns or rows and allow to move all other columns or rows with scroll bar.

                    • 7. Re: Stacked Canvas
                      salute-Salem

                      this what did not work for me ,

                      because when i try to put the columns from 4 to 10 on a stack canvas , i should make the stack canvas big as i can to hold all columns (4 to 10) ,

                      so there is no need to scroll horizontally .

                       

                      but what i did , and i do not know if you did it with the same way or not ,

                      i put columns from 4 to 10 on the stack , and made the view port of the canvas smaller (ex. holds only columns 4 to 6 ,

                      then i could scroll horizontally . is this the way i should use ?

                      • 8. Re: Stacked Canvas
                        sfr.farhan

                        Ora-01400 wrote:

                        i put columns from 4 to 10 on the stack , and made the view port of the canvas smaller (ex. holds only columns 4 to 6 ,

                        then i could scroll horizontally . is this the way i should use ?

                         

                        Yes, it's correct.