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
 THistogramBox Align = alClient doesn't work

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
tedfine Posted - Dec 06 2017 : 17:02:34
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
3   L A T E S T    R E P L I E S    (Newest First)
tedfine Posted - Dec 07 2017 : 09:44:14
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.
xequte Posted - Dec 06 2017 : 23:23:48
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
tedfine Posted - Dec 06 2017 : 20:56:40
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.