ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIEFolderTree and TStyleManager issues
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

lbusch1313

USA
6 Posts

Posted - Jun 24 2021 :  08:02:14  Show Profile  Reply
If I set a "style" via the Delphi Style Manager, a call to IEFolderTree1.Folder fails. I've tried dozens of possible work-arounds but no joy. I built a simple app consisting of just a folder tree to test. I've added the lightly annotated source below. Any ideas? Thanks.


unit pFolderTreeTest;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, iexFolderTree;

type
  TForm1 = class(TForm)
    IEFolderTree1: TIEFolderTree;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation
uses Vcl.Themes,  Vcl.Styles;
{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
  {In Project>Options>Appearance add "Tablet Light". Be sure "Windows" is set as the "default}
  IEFolderTree1.Folder:='c:\windows\';
  {A TStyle set to the "default"  style and the IE Folder loads}
  {comment in or out}
  TStyleManager.TrySetStyle('Windows');  {works as windows is the "default" theme}
  {Change from the "defaut" and the setting IE.folder fails}
  //TStyleManager.TrySetStyle('Tablet Light');
end;


Lou

xequte

38222 Posts

Posted - Jun 25 2021 :  00:22:58  Show Profile  Reply
Hi Lou

Thanks for the report. We have a fix for this in the upcoming release (July) or you can email me for the updated source code.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

lbusch1313

USA
6 Posts

Posted - Jun 25 2021 :  10:31:32  Show Profile  Reply
I've just started using ImageEn and chalked it up to a knowledge deficit. Thanks for the quick reply. I've commented out the code in my project and will probably wait for the update to put it back.

Windows 10
Delphi 10.3
ImageEn 10
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: