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
 Get the ButtonStrings from an ImageEnViewToolbar?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

982 Posts

Posted - Mar 27 2021 :  17:27:26  Show Profile  Reply
How to iterate through the Buttons of an ImageEnViewToolbar and get their respective Button strings (e.g. "ivbImageOpen")?

PeterPanino

982 Posts

Posted - Mar 27 2021 :  17:43:10  Show Profile  Reply
It's easy:

var
  bt: TImageEnViewButton;

for bt in ImageEnViewToolbar1.Buttons do
  CodeSite.Send('ButtonToStr(bt)', ButtonToStr(bt));

Go to Top of Page

xequte

39053 Posts

Posted - Mar 28 2021 :  20:49:06  Show Profile  Reply
Hi Peter

What unit is ButtonToStr from?


Nigel
Xequte Software
www.imageen.com

Cross reference: topic.asp?TOPIC_ID=4872
Go to Top of Page

PeterPanino

982 Posts

Posted - Mar 29 2021 :  08:57:11  Show Profile  Reply
Hi Nigel,

I got the code for the ButtonToStr function once from you. I didn't publish it here because I'm not sure whether I am allowed to.
Go to Top of Page

xequte

39053 Posts

Posted - Mar 29 2021 :  17:01:51  Show Profile  Reply
Hi Peter

Sorry, I cannot locate that code. Can you please publish it here.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: