Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-11

Improvement request for the object inspector

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gerard N/A

Hi all,

Could some Lazarus developer have a look at the patch I posted in http://bugs.freepascal.org/view.php?id=12607, and apply it if Ok? It has been targeted to 0.9.28, but It would make the object inspector much more usable and I think it is at least as necessary as the latest cosmetic changes to the editor.
If the patch doens't work against the latest SVN, its just about to replace procedure TBoolPropertyEditor.SetValue at line 2998 of /ideintf/propedits.pp with the
new code:

TBoolPropertyEditor.SetValue(const NewValue: ansistring);
var
  I: Integer;
begin
  if (CompareText(NewValue, 'False') = 0) or (CompareText(NewValue, 'F')=0) then
    I := 0
  else if (CompareText(NewValue, 'True') = 0) or
(CompareText(NewValue, 'T') = 0) then
    I := 1
  else
    I := StrToInt(NewValue);
  SetOrdValue(I);
end;

Best regards,

Gerard.

Reply by email