Defines the mouse and keyboard action the user must perform in order to constrain the aspect ratio when zooming the chart panel, i.e., the zoomed rectangle is proportional to the
ChartRect.
Namespace: FMX.RS.ChartPanel
Delphi
|
public
property UserProportional: TShiftState read FUserProportional write FUserProportional default DefaultUserProportional;
|
Property Value
Type: TShiftState
The following code enables the pan, select, and zoom actions for the chart panel. It then defines the mouse and keyboard combinations needed by the user to interact with the chart panel:
Delphi
|
begin
RSChartPanel1.UserActions := [cuaZoom, cuaPan, cuaSelect];
RSChartPanel1.UserZoom := [ssLeft]; // Left mouse button
RSChartPanel1.UserProportional := [ssShift]; // hold down shift button to constrain the zoom
RSChartPanel1.UserPan := [ssAlt, ssLeft]; // Left mouse button and holding down Alt key
RSChartPanel1.UserSelect := [ssCtrl, ssLeft]; // Left mouse button and holding down Control key
end;
|
|