Dialogs do not show tabs lazarus / 31-LCL ---------------------------------------------------------------------- artem101 · 2021-08-12 17:46 I see this issue on Windows 7 with 2.0.12 (latest) version of lazarus. 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 ShowMessage('one' + #9 + 'two'); As result two strings will be shown together: Quoteonetwo The same result when I use Application.MessageBox or MessageDlg instead. ---------------------------------------------------------------------- winni · 2021-08-12 19:15 Hi! Tab (#9) in showMessage is only not expanded in Windows. Linux (gtk2) expands the Tab. 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 Label1.caption := ('one' + #9 + 'two'); expands the Tab. TextRect also does: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  canvas.TextRect(Rect(0,0,100,100),5,5, 'one' + #9 + 'two');  So it is a bug in the Windows version of showMessage. Winni ---------------------------------------------------------------------- howardpc · 2021-08-12 19:23 As a workaround you can use 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 ShowMessageFmt('one%stwo',[StringOfChar(#32, 8)]); ---------------------------------------------------------------------- tetrastes · 2021-08-12 19:30 I think this is not a bug in the Windows version of showMessage, but Windows feature (well, we may call it bug...  ). For example, this code Code: C  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     wxMessageBox(wxString::Format                 (                    "Welcome to %s!\n"                    "\n"                    "This is the minimal wxWidgets sample\n"                    "running under %s.\n\n"                    "Tabulation test:\n"                    "one\ttwo",                    wxVERSION_STRING,                    wxGetOsDescription()                 ),                 "About wxWidgets minimal sample",                 wxOK | wxICON_INFORMATION,                 this); results in following (compiled with TDM gcc 9.2.0): ---------------------------------------------------------------------- skalogryz · 2021-08-12 20:52 Code: Diff  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i diff --git a/lcl/interfaces/win32/win32lclintf.inc b/lcl/interfaces/win32/win32lclintf.incindex 03969db542..b3975931b2 100644--- a/lcl/interfaces/win32/win32lclintf.inc+++ b/lcl/interfaces/win32/win32lclintf.inc@@ -685,6 +685,13 @@ begin     Result := False; end; +function TaskDialogStr(const src: string): string;+begin+  // TaskDialog doesn't support tab charcters. For whatever reason.+  // They're not supported in either the Caption or main Text of the dialog+  Result := StringReplace(src, #9, #32, [rfReplaceAll]);+end;+ function TWin32WidgetSet.PromptUser(const DialogCaption, DialogMessage: String;   DialogType: longint; Buttons: PLongint; ButtonCount, DefaultIndex,   EscapeResult: Longint): Longint;@@ -725,7 +732,7 @@ begin     else       Caption := Application.Title;     end;-    TaskConfig.pszWindowTitle := PWideChar(UTF8ToUTF16(Caption));+    TaskConfig.pszWindowTitle := PWideChar(UTF8ToUTF16(TaskDialogStr(Caption)));      case DialogType of       idDialogConfirm:@@ -741,7 +748,7 @@ begin       TaskConfig.dwFlags := TaskConfig.dwFlags or TDF_USE_HICON_MAIN;     end; -    TaskConfig.pszContent := PWideChar(UTF8ToUTF16(DialogMessage));+    TaskConfig.pszContent := PWideChar(UTF8ToUTF16( TaskDialogStr(DialogMessage)));      TaskConfig.cButtons := ButtonCount;     GetMem(DialogButtons, SizeOf(TTASKDIALOG_BUTTON) * ButtonCount); ---------------------------------------------------------------------- winni · 2021-08-12 21:59 Quote from: tetrastes on August 12, 2021, 09:30:59 pmI think this is not a bug in the Windows version of showMessage, but Windows feature (well, we may call it bug...  ). Hi! I hate to work around all this M$ "features" with some olympic acrobatic code. Would be nice if Lazarus could solve it. Winni