Changing a graph's position and size

When you first place a graph in a DataWindow object, it is in the foreground—it sits above the bands in the DataWindow object. Unless you change this setting, the graph displays in front of any retrieved data.

StepsTo specify a graph's position and size:

  1. Select Properties from the graph's pop-up menu.

  2. Select the settings you want for the options on the Position page of the Properties view.

    Table 24-5: Settings on the Position page for graphs

    Setting

    Meaning

    Layer

    Background — The graph displays behind other elements in the DataWindow object.

    Band — The graph displays in one particular band. If you choose this setting, you should resize the band to fit the graph. Often you will want to place a graph in the Footer band. As users scroll through rows in the DataWindow object, the graph remains at the bottom of the screen as part of the footer.

    Foreground — (Default) The graph displays above all other elements in the DataWindow object.

    Moveable

    The graph can be moved in the Preview view and during execution. Not applicable to PocketBuilder applications at runtime.

    Resizable

    The graph can be resized in the Preview view and during execution. Not applicable to PocketBuilder applications at runtime.

    Slide Left, Slide Up

    The graph slides to the left or up to remove extra white space. For more information, see “Sliding controls to remove blank space in a DataWindow object”.

    X, Y

    The location of the upper-left corner of the graph.

    Width, Height

    The width and height of the graph.

  3. Select or clear the Size To Display check box on the General page of the Properties view.

    When you select the Size To Display check box, the graph fills the DataWindow object and resizes when users resize the DataWindow object. This setting is used automatically with the Graph presentation style.