Memo1.Cursor := crHandPoint has no effect lazarus / 31-LCL ---------------------------------------------------------------------- tomitomy · 2017-10-26 11:58 Hi, I had a problem, this code does not work, I don't know why: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.FormCreate(Sender: TObject);begin  Memo1.Cursor := crHandPoint;end; ---------------------------------------------------------------------- Michl · 2017-10-26 12:10 Which Lazarus version? Which OS / Widgetset? ---------------------------------------------------------------------- tomitomy · 2017-10-26 12:21 Quote from: Michl on October 26, 2017, 02:10:39 pmWhich Lazarus version? Which OS / Widgetset? Oh, I'm Sorry, I forgot that. Lazarus: 1.8.0 RC4 GTK2 OS: Linux Mint 18.2 Mate 64-bit ---------------------------------------------------------------------- tomitomy · 2017-10-26 13:43 All cursors doesn't work: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  i: integer = 0; procedure TForm1.Memo1MouseWheel(Sender: TObject; Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);var  Curs: array[0..32] of TCursor = (crHigh, crDefault, crNone, crArrow, crCross, crIBeam, crSize,    crSizeNESW, crSizeNS, crSizeNWSE, crSizeWE, crSizeNW, crSizeN, crSizeNE, crSizeW, crSizeE,  crSizeSW, crSizeS, crSizeSE, crUpArrow, crHourGlass, crDrag, crNoDrop, crHSplit, crVSplit,    crMultiDrag, crSQLWait, crNo, crAppStart, crHelp, crHandPoint, crSizeAll, crLow);begin  if i > 32 then    i := 0;  Memo1.Cursor := Curs[i];  Caption := IntToStr(Curs[i]);  Inc(i);end; Is it a bug? ---------------------------------------------------------------------- WooBean · 2017-10-26 14:19 Quote from: tomitomy on October 26, 2017, 01:58:48 pmHi, I had a problem, this code does not work, I don't know why: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.FormCreate(Sender: TObject);begin  Memo1.Cursor := crHandPoint;end;Hi, I tried your code in Lazarus 1.6.4/FPC 3.0.4RC1/ Linux Mint 18.2/x86_64-gtk2 - cursor is not changed in Memo as in your case. I tried your code in Lazarus 1.6/FPC 3.0.0/ Win32/win64  - cursor is changed in Memo as expected. So, the culprit is Linux (or gtk2) part of code in TMemo class. ---------------------------------------------------------------------- tomitomy · 2017-10-26 14:34 Quote from: WooBean on October 26, 2017, 04:19:18 pmHi, I tried your code in Lazarus 1.6.4/FPC 3.0.4RC1/ Linux Mint 18.2/x86_64-gtk2 - cursor is not changed in Memo as in your case. I tried your code in Lazarus 1.6/FPC 3.0.0/ Win32/win64  - cursor is changed in Memo as expected. So, the culprit is Linux (or gtk2) part of code in TMemo class. So, it is a bug? Do I need to submit it to the bug report forum? ---------------------------------------------------------------------- WooBean · 2017-10-26 14:48 In my opinion changing default cursor in TMemo has little sense but there are some differences between Windows and Linux implementation in TMemo class which should not exist in a perfect world. I vote that this is a minor bug. ---------------------------------------------------------------------- tomitomy · 2017-10-26 15:08 Quote from: WooBean on October 26, 2017, 04:48:15 pmIn my opinion changing default cursor in TMemo has little sense but there are some differences between Windows and Linux implementation in TMemo class which should not exist in a perfect world. I vote that this is a minor bug. Thank you WooBean, I need to promptly remind the user TMemo read-only status by modifying the cursor. I will report this bug. Thank you for your help. I have submitted the issue to the bug tracker forum: https://bugs.freepascal.org/view.php?id=32616 ---------------------------------------------------------------------- WooBean · 2017-10-26 15:33 A quick solution for you can be:   Memo.Enabled := False; This code changes default cursor at TMemo in Linux environment to something looking as "?" and below "v" at the same place. It may be not a perfect solution as you are not free to choose a particular cursor. ---------------------------------------------------------------------- tomitomy · 2017-10-26 15:39 Quote from: WooBean on October 26, 2017, 05:33:07 pmA quick solution for you can be:   Memo.Enabled := False; This code changes default cursor at TMemo in Linux environment to something looking as "?" and below "v" at the same place. It may be not a perfect solution as you are not free to choose a particular cursor. Thank you for your reply, I hope TMemo can read freely, when the user needs to edit, at any time to switch to edit the state, ? cursor is not a good reading experience. ---------------------------------------------------------------------- WooBean · 2017-10-26 15:49 Well, I just experimented with TMemo in Linux and when it is not enabled we can change cursor in Memo (as we do it in Win32/64). When we change Memo.Enable to True its cursor becomes as default - not as set just before. Strange? ---------------------------------------------------------------------- tomitomy · 2017-10-27 01:27 Quote from: WooBean on October 26, 2017, 05:49:25 pmWell, I just experimented with TMemo in Linux and when it is not enabled we can change cursor in Memo (as we do it in Win32/64). When we change Memo.Enable to True its cursor becomes as default - not as set just before. Strange? I tested the Distabled state, as you said, the cursor changed. Maybe this can help developers find BUG, thank you very much! Test Code: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.FormCreate(Sender: TObject);begin  Memo1.Enabled := False;  Memo1.Cursor := crHandPoint;end; procedure TForm1.Button1Click(Sender: TObject);begin  Memo1.Enabled := not Memo1.Enabled;end;