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
 Helper functions
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graph_man

328 Posts

Posted - Nov 15 2018 :  19:33:38  Show Profile  Reply
I'm trying to use helper "iexMetaXelpers" and I see the error
"NewGridFromIPTC is not member of TStringGrid"

I added
# include <iexMetaXelpers.hpp> in H-file

1) What I should make to fix this issue?
2) Is there ability to make the same things without helpers?

xequte

38615 Posts

Posted - Nov 17 2018 :  21:03:07  Show Profile  Reply
Hi Vjacheslav

For 8.1.2, which should be ready before December (awaiting release of Rio), we have added global methods that can be used as an alternative to helper classes.

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

graph_man

328 Posts

Posted - Nov 18 2018 :  12:32:10  Show Profile  Reply
Thanks.
Please let me know.
Go to Top of Page

xequte

38615 Posts

Posted - Nov 25 2018 :  14:26:58  Show Profile  Reply
Sorry Vjacheslav,

We had to remove this from 8.1.2 due to difficulties with it on some Delphi versions. We will investigate it further and try to get it back into 8.1.3.

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

graph_man

328 Posts

Posted - Nov 26 2018 :  04:10:37  Show Profile  Reply
OK
Go to Top of Page

graph_man

328 Posts

Posted - Feb 26 2019 :  05:07:21  Show Profile  Reply
Was this feature added in ImageEn 8.3.0?
Go to Top of Page

xequte

38615 Posts

Posted - Feb 26 2019 :  18:04:09  Show Profile  Reply
Hi

We investigated it, but decided the amount of work required to make it compatible with pre-Delphi 2005 versions was too significant. Apologies for this.

You should pull out the code you need until your own unit and convert it to a non-helper method.



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

graph_man

328 Posts

Posted - Feb 27 2019 :  02:51:03  Show Profile  Reply
Could you send an example based on "iexMetaXelpers" function?
Go to Top of Page

xequte

38615 Posts

Posted - Feb 27 2019 :  18:03:24  Show Profile  Reply
Here's an example of converting a helper function to a global function...

HELPER METHOD:

procedure TListViewHelper.InitializeList(bFixLayout : Boolean = True);
const
  Buffer_px = 4;
var
  aListColumn: TListColumn;
begin
  Clear;

  if bFixLayout then
  begin
    ViewStyle := vsReport;
    Columns.Clear;
  end;
         
  // Clear content
  Clear;

  // Setup the columns
  if Columns.count < 2 then
  begin
    aListColumn := Columns.Add;
    aListColumn.Caption := iemsg(IEMSG_NAME);
    aListColumn.Width := Width div 3;      // 1/3 width
    aListColumn := Columns.Add;
    aListColumn.Caption := iemsg(IEMSG_VALUE);
    aListColumn.Width := MulDiv(Width, 3, 2) - GetSystemMetrics(SM_CYVSCROLL) - Buffer_px;  // 2/3 width less Scrollbar width
  end;
end;



GLOBAL METHOD:

procedure InitializeList(var aListView: TListView; bFixLayout: Boolean = True);
const
  Buffer_px = 4;
var
  aListColumn: TListColumn;
begin
  with aListView do
  begin
    Clear;

    if bFixLayout then
    begin
      ViewStyle := vsReport;
      Columns.Clear;
    end;

    // Clear content
    Clear;

    // Setup the columns
    if Columns.count < 2 then
    begin
      aListColumn := Columns.Add;
      aListColumn.Caption := iemsg(IEMSG_NAME);
      aListColumn.Width := Width div 3;      // 1/3 width
      aListColumn := Columns.Add;
      aListColumn.Caption := iemsg(IEMSG_VALUE);
      aListColumn.Width := MulDiv(Width, 3, 2) - GetSystemMetrics(SM_CYVSCROLL) - Buffer_px;  // 2/3 width less Scrollbar width
    end;
  end;
end;



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

graph_man

328 Posts

Posted - Feb 28 2019 :  03:00:30  Show Profile  Reply
Thank you, Nigel.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: