Hello,
I suppose, the graph belongs to a component presented as dialog in context of another component found in the lower screen area. If this is the case, please verify the invocation of SwitchToDialog() or PresentDialog(). In the following example, the dialogWithGraph component will appear inside SomeComponent:
SomeComponent.PresentDialog( dialogWithGraph, ... );
In the following example, PresentDialog() is invoked in context of this (the actual component). dialogWithGraph will thus appear in inside of 'this' component:
this.PresentDialog( dialogWithGraph, ... );
... or ...
PresentDialog( dialogWithGraph, ... );
Let's assume, you invoked PresentDialog() or SwitchToDialog() in context of the component containing the buttons 'Set Points' and 'Chart'. Then, the new presented component will appear inside this component with buttons.
To control the behavior, specify explicitly in which context you want the new component to appear. Some of the possible options:
Option 1: You could present the component in context of the owner of the component containing the buttons:
Owner.PresentDialog( dialogWithGraph, ... );
Option 2: You could present the component in context of the application's root component:
rootthis.PresentDialog( dialogWithGraph, ... );
... or if working with EW < 12 ...
GetRoot().PresentDialog( dialogWithGraph, ... );
See also the section Take a closer look at the Dialog functionality for more details.
Best regards
Paul Banach