IDEIntf: objectinspector: update popup menu item Show Hints always, bug #18092

git-svn-id: trunk@28538 -
This commit is contained in:
mattias 2010-11-28 15:35:09 +00:00
parent fed2915490
commit efb3fc218d
2 changed files with 3 additions and 1 deletions

View File

@ -903,6 +903,8 @@ function TPascalParserTool.KeyWordFuncClassIdentifier: boolean;
MyEnum: (MyEnumm1, MyEnumm2 := 2, MyEnummy3);
MySet: set of (MyEnummy4 := 4 , MyEnummy5);
MyRange: 3..5;
examples for type:
TCompareFunc = function(const Item1, Item2: T): Integer;
}
begin
if CurNode.Desc = ctnClassType then begin

View File

@ -5031,6 +5031,7 @@ var
Persistent: TPersistent;
begin
RemoveComponentEditorMenuItems;
ShowHintsPopupMenuItem.Checked := PropertyGrid.ShowHint;
// show component editors only for component treeview
if MainPopupMenu.PopupComponent = ComponentTree then
begin
@ -5098,7 +5099,6 @@ begin
CurRow := GetActivePropertyRow;
UndoPropertyPopupMenuItem.Visible := True;
UndoPropertyPopupMenuItem.Enabled := (CurRow<>nil) and (CurRow.Editor.GetVisualValue <> CurGrid.CurrentEditValue);
ShowHintsPopupMenuItem.Checked := PropertyGrid.ShowHint;
if CurRow=nil then begin
FindDeclarationPopupmenuItem.Visible := False;
end