当前位置:   article > 正文

DEVExpress实现流程图_dev express 工序

dev express 工序

unit Unit1;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels,
  cxLookAndFeelPainters, Vcl.StdCtrls, dxflchrt, System.ImageList, Vcl.ImgList;

type
  TForm1 = class(TForm)
    dxFlowChart1: TdxFlowChart;
    Button1: TButton;
    btnsave: TButton;
    Button2: TButton;
    btnLoad: TButton;
    Button3: TButton;
    ImageList1: TImageList;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure btnsaveClick(Sender: TObject);
    procedure btnLoadClick(Sender: TObject);
    procedure Button3Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation
    uses dxFcEditAdv,dxFlowChartDesigner;

//上面二个很关键,第一个引用才会弹出对话框,第二个才会弹出新的流程图设计窗口
{$R *.dfm}

procedure TForm1.btnLoadClick(Sender: TObject);
begin
   dxFlowChart1.LoadFromFile('d:\a.txt');
end;

procedure TForm1.btnsaveClick(Sender: TObject);
begin
 dxFlowChart1.SaveToFile('D:\a.txt');
end;

procedure TForm1.Button1Click(Sender: TObject);
begin


   if ShowFlowChartEditor(dxFlowChart1,'') then
     begin
       self.Caption:='a';
     end;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
dxFlowChart1.Clear;
end;

procedure TForm1.Button3Click(Sender: TObject);
var
PFlowchar:TdxFlowChartEditorOptions;
begin
  PFlowchar:= TdxFlowChartEditorOptions.create;
  PFlowchar.UseAdvancedShapesOnly:=true;

   if ShowFlowChartEditor(dxFlowChart1,'',PFlowchar) then
     begin
       self.Caption:='a';
     end;
end;

end.

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/135828
推荐阅读
相关标签
  

闽ICP备14008679号