[bug may be only with Windows] PageContrtol TabSheet - Paste bug? lazarus / 9-Editor ---------------------------------------------------------------------- Nicole · 2025-04-14 08:47 Is this a bug? (Version 3.0) Do this: - have several TPageControls - each has several TTabSheets - choose one of the Tabsheets - cut it - paste it to a different page control => I saw an error message and the IDE freezing. After some minutes it recovered, said error and has eaten the very TabSheet. After reading the answers, reported: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41598 ---------------------------------------------------------------------- wp · 2025-04-14 15:42 Quote from: Nicole on April 14, 2025, 10:47:07 amIs this a bug? Yes, I can confirm it, not only with Laz 3.0, but also with current Laz/main. My feeling is that such a parent change is not possible for this kind of control, because it also does not work to drag a tabsheet in the Object Tree (above the Object Inspector) to another pagecontrol. But please file a bug report - the IDE definitely should not hang. ---------------------------------------------------------------------- Bart · 2025-04-14 16:29 The IDE is doing a stacktrace (and probably logging that), which causes a freeze. IIRC then cut/paste a TTabSheet doesn't work in Delphi either. Bart ---------------------------------------------------------------------- wp · 2025-04-14 17:31 Quote from: Bart on April 14, 2025, 06:29:21 pmThe IDE is doing a stacktrace (and probably logging that), which causes a freeze. But wouldn't it be better to detect that the TabSheet is pasted into a different parent and just raise an exception? Quote from: Bart on April 14, 2025, 06:29:21 pmIIRC then cut/paste a TTabSheet doesn't work in Delphi either. I tested with XE 11.3 CE and D7: In the Object Tree, it is possible to drag a Tabsheet node to another pagecontrol. In our case, the drag cursor indicates that it is not possible to drop the node on the other pagecontrol.In the TabSheet's contextmenu, the commands to "Cut" and "Copy" are grayed. ---------------------------------------------------------------------- Bart · 2025-04-14 20:23 IIRC there is a bugreport out there about not being able to change the parent of a TTabSheet to another TPageControl, which (again IIRC) can be done in Delphi. The freeze with the backtrace is also happenng to me frequently when I have a simple (console) project like: 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 begin |end. where | indicates the caret, and I then press Enter. It may freeze for > 1 minute, and strange things happen on the display (e.g. the icons of the main toolbar getting stretched to about half the size of my screen). Bart