mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 10:03:01 +02:00
fixed readonly of properties
git-svn-id: trunk@2733 -
This commit is contained in:
parent
01cd906081
commit
c2ef0a248a
@ -803,7 +803,6 @@ begin
|
||||
FontDialog := TFontDialog.Create(Application);
|
||||
try
|
||||
FontDialog.Font := TFont(GetOrdValue);
|
||||
//FontDialog.HelpContext := hcDFontEditor;
|
||||
FontDialog.Options := FontDialog.Options + [fdShowHelp, fdForceFontExist];
|
||||
if FontDialog.Execute then
|
||||
SetOrdValue(Longint(FontDialog.Font));
|
||||
@ -818,8 +817,9 @@ var
|
||||
begin
|
||||
Result := [paMultiSelect, paSubProperties, paDialog, paReadOnly];
|
||||
AComponent:=GetComponent(0);
|
||||
if (AComponent<>nil) and (AComponent is TControl) then
|
||||
Include(Result,paReadOnlySubProperties);
|
||||
if (AComponent<>nil) and (AComponent is TControl)
|
||||
and (not (AComponent is TStaticText)) then
|
||||
Result:=Result+[paDisableSubProperties]-[paDialog];
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user