| Code: |
| procedure TNodeProperties.ApplyChanges;
var I: Integer; begin S.BeginUpdate; try for I := 0 to N.Count - 1 do with TGraphNode(N[I]) do begin case rgAlignment.ItemIndex of 0: Alignment := taLeftJustify; 1: Alignment := taCenter; 2: Alignment := taRightJustify; end; Margin := UpDownMargin.Position; Text := NodeText.Lines.Text; Brush.Color := BodyColor.Color; Pen.Color := NodeBorderColor.Color; Font := FontDialog.Font; if NodeShape.ItemIndex >= 0 then ConvertTo(TSimpleGraph.NodeClasses(NodeShape.ItemIndex)); if Backgnd = 1 then Background.LoadFromFile(OpenPictureDialog.FileName) else if Backgnd = 2 then Background.Graphic := nil; end; finally S.EndUpdate; Backgnd := 0; end; end; |
| Code: |
| procedure TNodeProperties.ApplyChanges;
var I: Integer; begin S.BeginUpdate; try for I := 0 to N.Count - 1 do with TGraphNode(N[I]) do begin case rgAlignment.ItemIndex of 0: Alignment := taLeftJustify; 1: Alignment := taCenter; 2: Alignment := taRightJustify; end; Margin := UpDownMargin.Position; Text := NodeText.Lines.Text; Brush.Color := BodyColor.Color; Pen.Color := NodeBorderColor.Color; Font := FontDialog.Font; if Backgnd = 1 then Background.LoadFromFile(OpenPictureDialog.FileName) else if Backgnd = 2 then Background.Graphic := nil; if NodeShape.ItemIndex >= 0 then ConvertTo(TSimpleGraph.NodeClasses(NodeShape.ItemIndex)); end; finally S.EndUpdate; Backgnd := 0; end; end; |
| Code: |
| if Backgnd = 1 then
Background.LoadFromFile(OpenPictureDialog.FileName) else if Backgnd = 2 then Background.Graphic := nil; |
| Code: |
| if NodeShape.ItemIndex >= 0 then
ConvertTo(TSimpleGraph.NodeClasses(NodeShape.ItemIndex)); |
| Kambiz wrote: |
| kokkoras,
Could you please attach a sample graph file here, to investigate the issue? Thanks |
output generated using printer-friendly topic mod. All times are GMT