Page 1 of 1

TStatusBarPro in Delphi 2007

PostPosted: April 4th, 2007, 4:04 pm
by Otho
I am trying to install TStatusBarPro into Delphi 2007 and am running into a few issues.

I added Contnrs to the uses clause in SBProReg to allow TComponentList
Added Designide.dcp to the required list
used the modified DELPHIAREA.INC from the Delphi 2005 post.

when i go to install i get the following error:
Incompatible types: 'IDesignerSelections' and 'TComponetList'
in the SBProReg at line 113

any help would be appreciated, thanks

procedure TStatusBarProEditor.PanelsEditor(Prop: TPropertyEditor);
begin
if Prop.GetName = 'Panels' then
Prop.Edit;
end;

procedure TStatusBarProEditor.Edit;
var
{$IFDEF COMPILER5_UP}
List: TDesignerSelectionList;
{$ELSE}
List: TComponentList;
{$ENDIF}
begin
{$IFDEF COMPILER5_UP}
List := TDesignerSelectionList.Create;
{$ELSE}
List := TComponentList.Create;
{$ENDIF}
try
List.Add(Component);
GetComponentProperties(List, [tkClass], Designer, PanelsEditor);
finally
List.Free;
end;
end;

PostPosted: April 4th, 2007, 6:23 pm
by Johnny_Bit
post code you changed, post full error messages, steps you've taken to make things work. THEN we'll be able to give you decent solution

PostPosted: April 4th, 2007, 9:15 pm
by Kambiz
You must modify DELPHIAREA.INC to include Delphi 2007 version.

PostPosted: April 5th, 2007, 12:40 pm
by Otho
Thanks, That worked, hate it when i miss the obvious