Recent

Author Topic: These 'raise' messages do not look nice  (Read 1220 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2401
    • UVviewsoft
These 'raise' messages do not look nice
« on: January 23, 2022, 08:12:37 pm »
lcl/include/treeview.inc

Code: Pascal  [Select][+][-]
  1.     TreeNodeError('TTreeNodes.GetSelections Index '+IntToStr(AIndex)
  2.         +' out of bounds (Count='+IntToStr(FSelection.Count)+')');
  3.  
  4.     TreeNodeError('TTreeNodes.GetNodeFromIndex Index '+IntToStr(Index)
  5.            +' out of bounds (Count='+IntToStr(FCount)+')');
  6.  
  7.       TreeViewError('TTreeStrings.Add: Invalid level, Level='+IntToStr(Level)
  8.         +' OldLevel='+IntToStr(OldLevel));
  9.  
  10.         TreeViewError('TTreeStrings.Add: Invalid level, Node=nil I='+IntToStr(I)
  11.           +' Level='+IntToStr(Level));
  12.  
  13.       else TreeViewError('TTreeStrings.LoadTreeFromStream: Level='
  14.         +IntToStr(ALevel)+' CuurStr="'+CurrStr+'"');
  15.  

I suggest to use Format() here.

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: These 'raise' messages do not look nice
« Reply #1 on: January 23, 2022, 09:14:58 pm »
Can you open a bugreport and add a patch?
It also strikes me that the messages are hardcoded (so not translatable).

Bart

AlexTP

  • Hero Member
  • *****
  • Posts: 2401
    • UVviewsoft
Re: These 'raise' messages do not look nice
« Reply #2 on: January 23, 2022, 09:29:45 pm »
Created the bug report.


[Edited to add bug link.]
« Last Edit: January 24, 2022, 12:18:49 am by trev »

 

TinyPortal © 2005-2018