TStatusBarPro in Delphi 2007

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

TStatusBarPro in Delphi 2007

Postby Otho » April 4th, 2007, 4:04 pm

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;
Otho
Member
Member
 
Posts: 2
Joined: April 4th, 2007, 3:50 pm

Postby Johnny_Bit » April 4th, 2007, 6:23 pm

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
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Postby Kambiz » April 4th, 2007, 9:15 pm

You must modify DELPHIAREA.INC to include Delphi 2007 version.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby Otho » April 5th, 2007, 12:40 pm

Thanks, That worked, hate it when i miss the obvious
Otho
Member
Member
 
Posts: 2
Joined: April 4th, 2007, 3:50 pm


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 2 guests

cron