On 2015-10-17 07:31, Martin Schreiber wrote:
> Please send the file where the effect is reproducible and 
> write which line must be copied.

File attached. Line 65 and line 67 reproduces the issue for me every time.

Strangely, line 64 and 66 doesn't. Yet I checked the file with a hex
viewer, and there is no hidden (out of the ordinary) characters on those
lines - unless MSEide has some hidden characters in memory (richtext
highlighting changes) that aren't physically in the .pas file, but that
does affect Copy and Paste.

[....some more testing....]

I'm more used to the alternative Copy, Cut and Paste clipboard shortcuts
(eg: Ctrl+Ins, Shift+Ins and Shift+Del). They are more convenient for
me, as I use a Dvorak keyboard layout. I have these set up as
"alternative shortcuts" in MSEide too. My .sta file is attached too.

I did some more testing, and where Ctrl+C and then Ctrl+V correctly
copied and pasted a whole line of text, if I then switched to using
Ctrl+Ins to copy, and then either Ctrl+V or Shift+Ins to paste, then the
issue occurs on that same selected line. This works about 8/10 times.

It's all a bit weird.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
{
    fpGUI  -  Free Pascal GUI Toolkit

    Copyright (C) 2013 - 2015 See the file AUTHORS.txt, included in this
    distribution, for details of the copyright.

    See the file COPYING.modifiedLGPL, included in this distribution,
    for details about redistributing fpGUI.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    Description:
      This unit defines a class that draws a Bar chart.
}
unit fpg_chart_bar;

{$mode objfpc}{$H+}

interface

uses
  Classes,
  SysUtils,
  fpg_base,
  fpg_widget,
  fpg_chart;

type

  TfpgBarChart = class(TfpgChartTypeAbs)
  public
    procedure DoDraw; override;
  end;

implementation

uses
  Agg2D,
  Math;


{ TfpgBarChart }

procedure TfpgBarChart.DoDraw;
var
  lChart: TfpgChart;
  i, n, bw, bp: integer;
  x1, y1, x2, y2: double;
begin
  lChart := TfpgChart(FWidget);
  n := High(lChart.Dataset)+1;  // number of bars needed
  // avoid to create insane no of bars
  if n > (lChart.Width div 2) then
    exit; //==>
  bp := lChart.Width div n;  // bar pitch
  bw := bp - Max(2, lChart.LineWidth); // bar width (keep some space between 
bars)

  VG.LineWidth(1);
  VG.LineColor(0, $80, 0);
  VG.FillColor(0, $80, 0, 100); // ligter version of the outline color - using 
alpha channel
  for i := 0 to n-1 do
  begin
    x1 := i * bp;
    y1 := lChart.Height - lChart.DataSet[i,0];
    x2 := x1 + bw;
    y2 := lChart.Height;
    VG.Rectangle(x1, y1, x2, y2, True);
  end;
end;


initialization
  fpgChartFactory.RegisterClass(cChartBar, TfpgBarChart);

end.
[mainfo.mainstatfile]
fpcdir=/data/devel/fpc-2.6.4/
fpclibdir=${fpcdir}lib/
msedir=/data/devel/msegui/
mselibdir=${MSEDIR}lib/common/
syntaxdefdir=/data/home_dir/.mseide/syntaxdefs/
templatedir=/data/home_dir/.mseide/templates/
compstoredir=${MSEDIR}apps/ide/compstore/
compiler=/data/devel/fpc-2.6.4/x86_64-freebsd/bin/fpc
debugger=/usr/local/bin/gdb781
exeext=
target=x86_64-freebsd
targetosdir=linux
printcommand=lp -
globmacronames=6
 FPGUI
 FPG_GFX
 HelpPath
 ONGUARD
 TIOPF
 UOS
globmacrovalues=6
 /data/devel/fpgui
 x11
 /data/devel/FPC_Docs/inf/
 /data/devel/opensource/onguard/source
 /data/devel/tiopf
 /data/devel/opensource/uos/src
projectname=/data/devel/fpgui/examples/charting/6chart/test6chart.prj
projecthistory=10
 /data/devel/fpgui/examples/charting/6chart/test6chart.prj
 /data/devel/fpgui/extras/contributed/thumbchart2/test6chart.prj
 /data/devel/tests/utf8bytes/utf8test.prj
 /data/devel/fpgui/examples/gui/drag_n_drop/dndexample.prj
 /tmp/test.prj
 /data/devel/fpgui/examples/gui/edits_extrahint/edits_extrahint.prj
 /data/devel/tests/json_settings/jsontest.prj
 /data/devel/fpgui/examples/apps/ide/src/maximus.prj
 /data/devel/fpgui/examples/gui/listviewtest/listviewtest.prj
 /data/devel/fpgui_apps/osMusic/source/osmusic.prj
windowlayoutfile=/data/devel/Opensoft/bugcollector/src/bugcollector.prj
windowlayouthistory=1
 /data/devel/Opensoft/bugcollector/src/bugcollector.prj
[actionsmo.shortcuts]
sysshortcuts=11
 sho_copy,16451
 sho_paste,16470
 sho_cut,16472
 sho_selectall,16449
 sho_rowinsert,0
 sho_rowappend,24838
 sho_rowdelete,16647
 sho_copycells,24643
 sho_pastecells,24662
 sho_groupundo,16474
 sho_groupredo,24666
sysshortcuts1=11
 sho_copy,16646
 sho_paste,8454
 sho_cut,8455
 sho_selectall,0
 sho_rowinsert,0
 sho_rowappend,0
 sho_rowdelete,0
 sho_copycells,0
 sho_pastecells,0
 sho_groupundo,0
 sho_groupredo,0
shortcuts=94
 
 actionsmo.opensource 16463 0
 actionsmo.save 16467 0
 actionsmo.saveall 24659 0
 actionsmo.saveas
 actionsmo.close 16691 0
 actionsmo.closeall
 actionsmo.print
 
 actionsmo.line 16460 0
 actionsmo.find 16454 0
 actionsmo.repeatfind 306 0
 actionsmo.replace 16466 0
 actionsmo.findinfile 24646 0
 
 actionsmo.selecteditpage 16453 0
 actionsmo.indent 16457 0
 actionsmo.copylatexact 16459 0 76 0
 actionsmo.unindent 16469 0
 actionsmo.lowercase
 actionsmo.uppercase
 sourcefo.completeclassact 24641 0
 actionsmo.instemplate 16468 0
 sourcefo.navigbackact 16456 0
 sourcefo.navigforwardact 24648 0
 
 actionsmo.setbm0 24624 0
 actionsmo.setbm1 24625 0
 actionsmo.setbm2 24626 0
 actionsmo.setbm3 24627 0
 actionsmo.setbm4 24628 0
 actionsmo.setbm5 24629 0
 actionsmo.setbm6 24630 0
 actionsmo.setbm7 24631 0
 actionsmo.setbm8 24632 0
 actionsmo.setbm9 24633 0
 actionsmo.setbmnone
 
 actionsmo.findbm0 16432 0
 actionsmo.findbm1 16433 0
 actionsmo.findbm2 16434 0
 actionsmo.findbm3 16435 0
 actionsmo.findbm4 16436 0
 actionsmo.findbm5 16437 0
 actionsmo.findbm6 16438 0
 actionsmo.findbm7 16439 0
 actionsmo.findbm8 16440 0
 actionsmo.findbm9 16441 0
 
 actionsmo.attachprocess
 actionsmo.detachtarget
 actionsmo.continue 312 0
 actionsmo.reset
 actionsmo.interrupt
 actionsmo.next 311 0
 actionsmo.nexti 24887 0
 actionsmo.step 310 0
 actionsmo.stepi 24886 0
 actionsmo.finish 8502 0
 actionsmo.bkptsonact 16450 0
 actionsmo.togglebkpt 308 0
 actionsmo.togglebkptenable 8500 0
 actionsmo.watchesonact 16471 0
 actionsmo.bluedotsonact
 
 actionsmo.toggleinspector 314 0
 actionsmo.toggleformunit 315 0
 
 actionsmo.makeact 16696 0
 actionsmo.buildact 24888 0
 actionsmo.make1act
 actionsmo.make2act
 actionsmo.make3act
 actionsmo.make4act
 actionsmo.abortmakeact
 actionsmo.projectoptionsact 24890 0
 actionsmo.projectopenact 16698 0
 actionsmo.projectsaveact 33082 0
 actionsmo.projecttreeact
 actionsmo.projectsourceact
 actionsmo.projectcloseact
 
 actionsmo.helpact
 
 actionsmo.tool0 24891 0
 actionsmo.tool1 304 0
 actionsmo.tool2
 actionsmo.tool3
 actionsmo.tool4
 actionsmo.tool5
 actionsmo.tool6
 actionsmo.tool7
 actionsmo.tool8
 actionsmo.tool9
------------------------------------------------------------------------------
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to