[vw 7.7.1 ]DataSet is missing some functionality for the Column changes.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[vw 7.7.1 ]DataSet is missing some functionality for the Column changes.

Mark Pirogovsky-3
Hello All,

Working with the Data Set view, I needed to detect when user did change
the width of some column.  To my surprise there were no notifications or
events generated by the view.

  After some examination I found that the are two classes responsible
for the  for handling Data Set Column move / re-size features.

ColumnDraggingTracker and ColumnResizeTracker.

The ColumnDraggingTrackers does send couple event notifications like:

....
controller view changed: #columnMove with: (Array with: columnIndex
with: originalColumnIndex).

or
     ...
self view triggerEvent: #columnLabelClicked.
.....

however the ColumnResizeTracker does not send any change notifications
or events on the column re-size.

I modified one of the methods for the class as follow:

finishSelectionFor: aPoint

     self controller selectUpAt: aPoint.
     self controller unlockCallBacks.
     self controller view changed: #columnResized  with: controller index.

This way i can register as a dependent of the data set view  and to know
that sizes were changes and react to it.

First,   I would propose that Cincom  includes this type of
notifications into all of their Tracker classes.

Second,  I wonder if I would be better off triggering an event instead :

  .... self view triggerEvent: #columnResized ...


--Mark Pirogovsky

____________________________________________________________
Woman is 53 But Looks 25
Mom reveals 1 simple wrinkle trick that has angered doctors...
http://thirdpartyoffers.netzero.net/TGL3241/505b36919c56f368e49f5st03duc
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc