stacked canvases
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: stacked canvases

  1. #1
    Join Date
    Jun 2001
    Posts
    109
    How to place one canvas over other canvas in forms?
    Can anyone please send me the code for placeing stacked canvas over content canvas.

    Thanks
    Saritha

  2. #2
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    1) U should create stack canvas in desine time, using usual "create object" scenario.
    -- create canvas
    -- set canvas property -> stacked
    -- set all needed view attributes

    2) in any trigger (example --> WHEN-TREE-NODE-SELECTED)
    u can hide (or show) stacked canvas:
    -----------------------------------------
    DECLARE
    cr_n FTREE.NODE;
    BEGIN
    cr_n := Ftree.Get_Tree_Selection('tr', 1);
    :ct.rg_prd := Ftree.Get_Tree_Node_Property('tr',
    :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE);
    go_block('dcp');
    clear_block(no_commit);
    if is_list(:ct.rg_prd) then
    execute_query;
    set_view_property('c_dep',DISPLAY_POSITION,225,28);
    show_view('c_dep');
    go_block('v_all');
    execute_query;
    begin
    select nm_product into :tot.nm_prod
    from trd.dc_product
    where rg_product = :ct.rg_prd;
    end;
    go_block('v_all');
    else
    hide_view('c_dep');
    go_block('dcp');
    clear_block(no_commit);
    execute_query;
    end if;
    END;
    ----------------------------------------------
    In this code --> c_dep - stacked canvas
    view stacked canvas:
    set_view_property('c_dep',DISPLAY_POSITION,225,28);
    show_view('c_dep');
    hide stacked canvas:
    hide_view('c_dep');

    This is real code from production application with liitle changes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width