SilverpointDev / sptbxlib

SpTBXLib is an expansion package for TB2K Delphi components that adds multiple features including support for styles and custom skins.
https://www.silverpointdevelopment.com
Other
72 stars 33 forks source link

Please reopen #73 #75

Closed Ludens1 closed 3 years ago

Ludens1 commented 3 years ago

https://github.com/SilverpointDev/sptbxlib/issues/73#issuecomment-764983571

SilverpointDev commented 3 years ago

Uninstall TB2K & SpTBXLib from the IDE. Delete TB2K & SpTBXLib folders. Unzip, repatch TB2K and install TB2K & SpTBXLib

Ludens1 commented 3 years ago

Of course I follow all these steps. But the result is still the same: [DCC Error] TB2Item.pas(2776): E2003 Undeclared identifier: 'TTBFloatingWindowParent'

Was forced to roll back to 2.5.6 :((

pyscripter commented 3 years ago

In TB2Dock.pas line 192 there is the following code:

 {$IF CompilerVersion >= 33}
  TTBVirtualImageList = class(TCustomImageList)
  private
    FDPIChangedMessageID: Integer;
    FSourceImageList: TCustomImageList;
    procedure SetSourceImageList(Value: TCustomImageList);
    procedure DPIChangedMessageHandler(const Sender: TObject; const Msg: System.Messaging.TMessage);
  protected
    function GetCount: Integer; override;
    procedure Notification(AComponent: TComponent; Operation: TOperation); override;
  public
    constructor Create(AOwner: TComponent); override;
    destructor Destroy; override;
    procedure DoDraw(Index: Integer; Canvas: TCanvas; X, Y: Integer;
       Style: Cardinal; Enabled: Boolean = True); override;
    property SourceImageList: TCustomImageList
      read FSourceImageList write SetSourceImageList;
    property Width;
    property Height;
  end;
 {$ENDIF}

Does changing the {$ENDIF} to {$IFEND} make any difference?

SilverpointDev commented 3 years ago

TTBVirtualImageList is not used, for Rio and up is better to use ImageCollection/VirtualImageList

pyscripter commented 3 years ago

@SilverpointDev ImageCollection/VirtualImageList would not work in this case. VirtualImageList scales the icons according to the PPI of the form it resides. Think of the following:

TTBVirtualImageList is a relatively simple solution to the FloatingWindowParent ImageList problem.

SilverpointDev commented 3 years ago

TTBVirtualImageList is a relatively simple solution to the FloatingWindowParent ImageList problem.

I have removed TTBVirtualImageList and added support for ImageCollection/VirtualImageList. Take a look at the release notes:

SilverpointDev commented 3 years ago

@Ludens1 Can you test the latest commit?

Ludens1 commented 3 years ago

Of course, sir! But unfortunately... [DCC Fatal Error] TB2Common.pas(164): F1026 File not found: 'UITypes.dcu' The latest patcher used. Win7, DXE

SilverpointDev commented 3 years ago

@Ludens1 Fixed, can you try the latest?

Ludens1 commented 3 years ago

@SilverpointDev [DCC Error] TB2Common.pas(1609): E2003 Undeclared identifier: 'TColorRec' The newest patch, Win7, Delphi XE

SilverpointDev commented 3 years ago

@Ludens1 I think it's fixed now.

Ludens1 commented 3 years ago

TB2K compiled successful now!

But new SpTBXLib... [DCC Fatal Error] SpTBXSkins.pas(70): F1026 File not found: 'Styles.dcu'

SilverpointDev commented 3 years ago

Fixed

Ludens1 commented 3 years ago

[DCC Error] SpTBXControls.pas(2753): E2003 Undeclared identifier: 'IsZero'

Delphi XE

SilverpointDev commented 3 years ago

Ok, tested and fixed.

Ludens1 commented 3 years ago

Yyyesss!! Thank you, sir! Are you going to publish it on silverpointdevelopment.com?

SilverpointDev commented 3 years ago

Yes, new version 2.5.8 published.