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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Helper functions

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
graph_man Posted - Nov 15 2018 : 19:33:38
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?
9   L A T E S T    R E P L I E S    (Newest First)
graph_man Posted - Feb 28 2019 : 03:00:30
Thank you, Nigel.
xequte Posted - Feb 27 2019 : 18:03:24
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
graph_man Posted - Feb 27 2019 : 02:51:03
Could you send an example based on "iexMetaXelpers" function?
xequte Posted - Feb 26 2019 : 18:04:09
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
graph_man Posted - Feb 26 2019 : 05:07:21
Was this feature added in ImageEn 8.3.0?
graph_man Posted - Nov 26 2018 : 04:10:37
OK
xequte Posted - Nov 25 2018 : 14:26:58
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
graph_man Posted - Nov 18 2018 : 12:32:10
Thanks.
Please let me know.
xequte Posted - Nov 17 2018 : 21:03:07
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