Selection in EwTableList

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Selection in EwTableList

Postby gsharma84 » Thu Feb 04, 2010 12:17 am

Hi,
I'm using VA Smalltalk 7.5.2 and I created a EwTable List in a window.
Say the table has only two rows, now if I click on the empty space after the last row the column of the last row appears selected. I have user CellSingleSelection on the table. I debugged the code and this behavior appears fine. But I have another EwTableList a bit of old code and I'm not able to replicate the scenario on that table, I'm really unclear of the reason why as to one is responding and the other is not.
Can anyone shed some light on this.
thanks
gsharma84
 
Posts: 16
Joined: Mon Dec 21, 2009 8:20 pm

Re: Selection in EwTableList

Postby gsharma84 » Thu Feb 04, 2010 2:25 am

got the solution :)

The solution lis to set the itemHeight as nil, then the code in
EwLinearList>>exposeHitTestItemAtX: x y: y
is not hit cause we are not using FixedHeight for column and we would get desired solution.

thanks
gsharma84
 
Posts: 16
Joined: Mon Dec 21, 2009 8:20 pm


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest