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
 THistogramBox Align = alClient doesn't work
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

tedfine

10 Posts

Posted - Dec 06 2017 :  17:02:34  Show Profile  Reply
It appears that when you put a histogram on a form or panel and set it to align with the client, that alignment doesn't occur when you resize the window. (In other words, the histogram stays it's original size.

Is there some trick to making that alignment occur that I'm missing?

Ted

tedfine

10 Posts

Posted - Dec 06 2017 :  20:56:40  Show Profile  Reply
Calling HistogramBox1.UpdateFromHistogram() on the OnResize event causes the component to align properly. It appears to me that the component is ignoring the OnResize event.
Go to Top of Page

xequte

39143 Posts

Posted - Dec 06 2017 :  23:23:48  Show Profile  Reply
Hi Ted

In the current version UpdateFromHistogram is stateless, i.e. when you resize it does not have any information to rebuild the histogram. For the next release, we will make it store the state even when using UpdateFromHistogram.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

tedfine

10 Posts

Posted - Dec 07 2017 :  09:44:14  Show Profile  Reply
No problem, Nigel. I am now keeping a copy of my histogram array and using it to explicitly repopulate the box on the form's resize event. This works fine.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: