5 Replies Latest reply: Jan 20, 2013 8:13 AM by 982158 RSS

    Show stacked canvas

    982158
      Hi,
      I have two canvas(1:content ,2:stacked) ,i used when-button-pressed trigger to show the stacked canvas using "show_view('canv_stacked');"
      but the stacked canvas is not displayed !!!!
      I think the problem is of dimension at the canvas stacked ..
        • 1. Re: Show stacked canvas
          HamidHelal
          979155 wrote:
          Hi,
          I have two canvas(1:content ,2:stacked) ,i used when-button-pressed trigger to show the stacked canvas using "show_view('canv_stacked');"
          but the stacked canvas is not displayed !!!!
          I think the problem is of dimension at the canvas stacked ..
          After your code, also add
          GO_ITEM('STACK_CANVAS_NAVIGABLE_ITEM_NAME');
          Hope this works...

          Hamid

          mark helpful or correct if solution works..
          • 2. Re: Show stacked canvas
            982158
            the problem is on the "visible" property.
            explanation:
            I have 2 buttons 1: EMP(visible), 2: Insert(not visible).
            1:EMP has when-button-pressed trigger :set_item_property('insert',visible,property_true);
            2:Insert has when-boutton-pressed trigger :go_item('id'); show_view('canv_stacked');

            => the stacked canvas is not displayed, but when I change from the palette button "insert" and make it visible, the canvas will be displayed
            why !!
            • 3. Re: Show stacked canvas
              yoonas
              Hi,
              >
              EMP has when-button-pressed trigger :set_item_property('insert',visible,property_true);
              >

              When EMP button is clicked the insert button has to be enabled then clicking the insert button actually brings up the stacked canvas, hope my understanding is correct
              >
              "When visible property is set to false it sets the Enabled and Navigable item properties to False" see forms>help>set_item_properties , propogation of property changes
              >
              So try setting the enabled property as well
              set_item_property('insert',visible,property_true);
              set_item_property('insert',enabled,property_true);
              Regards
              Yoonas
              • 4. Re: Show stacked canvas
                HamidHelal
                979155 wrote:
                the problem is on the "visible" property.
                explanation:
                I have 2 buttons 1: EMP(visible), 2: Insert(not visible).
                1:EMP has when-button-pressed trigger :set_item_property('insert',visible,property_true);
                2:Insert has when-boutton-pressed trigger :go_item('id'); show_view('canv_stacked');

                => the stacked canvas is not displayed, but when I change from the palette button "insert" and make it visible, the canvas will be displayed
                why !!
                Because you need to setup two more property to TRUE.
                Try this... at EMP button
                set_item_property('insert',VISIBLE,PROPERTY_TRUE);
                set_item_property('insert',ENABLED,PROPERTY_TRUE);
                set_item_property('insert',NAVIGABLE,PROPERTY_TRUE);
                Hope this works..

                Hamid

                If solution is correct mark it.
                • 5. Re: Show stacked canvas
                  982158
                  Thank you very much HamidHelal & Yoonus :)
                  it's works