Print Page | Close Window

How can i detect a column-resize?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=8175
Printed Date: 10 November 2024 at 5:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can i detect a column-resize?
Posted By: Jebo
Subject: How can i detect a column-resize?
Date Posted: 26 September 2007 at 2:43pm
Hi,
 
please, how can I recognize whether the user has resized a column with the resize-splitter?
 
I cannot detect any event that fires!?!
 
THX!



Replies:
Posted By: Jebo
Date Posted: 01 October 2007 at 4:47am
Is there no way?


Posted By: sserge
Date Posted: 01 October 2007 at 6:31pm
Well, for MFC version there is a special event, which unfortunately is not yet published for ActiveX: called COLUMN WIDTH CHANGED.
It could be available for the next version however.

--
WBR,
Serge


Posted By: Jebo
Date Posted: 01 October 2007 at 6:34pm
THX!
 
Do U know any workaround to detect a column-width-change by the user?


Posted By: sserge
Date Posted: 01 October 2007 at 7:07pm
Try handling MouseDown event -- look for a regular sample application for an example. There you can detect whether a Column Header Area was clicked (this might be a resizing click).

--
WBR,
Serge


Posted By: Jebo
Date Posted: 02 October 2007 at 6:00am
Oh yesssssssss! That worX great! :-)


Posted By: Jebo
Date Posted: 02 October 2007 at 6:13am

Sorry, my last answer was too fast - and wrong!

With the MouseDown-Event i can only detect the actually column-width, not the new column-width(!!!). And the MouseUp-Event does not fires if the user hast column-sizing finished! ;-(
 
So i hope you can add the "COLUMN WIDTH CHANGED" Event to the next release! THANK YOU!!!


Posted By: apuhjee
Date Posted: 24 November 2007 at 7:06pm
Can we please get this event in the ActiveX version?


Posted By: Baldur
Date Posted: 26 November 2007 at 8:18am
I have maked a workaround with a timer.
In the ColumnsAdd i store the width in the tag and every 100 ms, i check if the actual width is changed to the stored width.
It's working nice and easy.


Posted By: Jebo
Date Posted: 26 November 2007 at 8:27am
@Baldur
Okay, but U've always a heavy timer (for a little Feature) in Ur App!
I check the columnwidth on "Lost Focus". But both is only a workaround - so I will hope that the Codejock-guys have a heart for us and put this event to the next release! ;-)


Posted By: Baldur
Date Posted: 20 December 2007 at 2:43pm
I now use MouseDown and MouseUp-Event.
 
in MouseDown i store the active column (from hittest), in MouseUp i check for changed width's.
If no width is changed, i compare with the stored column, if the column is not changed, this is a single-column-click.
 
Heavy, but it works correct.
 
(I can't wait for the next version.)
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net