VW7.7.1 Font size differences in List widget between highlight and checkmark

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

VW7.7.1 Font size differences in List widget between highlight and checkmark

MarkPetersen
I'm sure not many do this, but I use two list widgets juxtapositioned next to each other get both single select and multiselect functionality. In VW7.7.1 I find that the lists do not line up correctly even when the same font style is used in both lists. I believe the vertical distance occupied by each line in the lists is different depending on whether checkmark or highlight multi-selection is enabled. This causes misalignment as shown in here: Is there a way to force the lines in a list to be the same vertical size independent of checkmark or highlight multi-selection choice? Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: VW7.7.1 Font size differences in List widget between highlight and checkmark

MarkPetersen
By the way, I should note that this occurs regardless of the font style selected and can be more pronounced on aix versus windows.  I have gotten very close to alignment on windows with one font, but then goes out of alignment when run on aix.

Thanks.
Mark Petersen
mpeterse@us.ibm.com
Reply | Threaded
Open this post in threaded view
|

Re: VW7.7.1 Font size differences in List widget between highlight and checkmark

Randy Coulman
You might try grabbing the #lineGrid from both lists, and then setting them both to the larger of the two.

Randy

On Fri, Dec 17, 2010 at 10:44 AM, MarkPetersen <[hidden email]> wrote:

By the way, I should note that this occurs regardless of the font style
selected and can be more pronounced on aix versus windows.  I have gotten
very close to alignment on windows with one font, but then goes out of
alignment when run on aix.

Thanks.
Mark Petersen
[hidden email]
--
View this message in context: http://forum.world.st/VW7-7-1-Font-size-differences-in-List-widget-between-highlight-and-checkmark-tp3092944p3092973.html
Sent from the VisualWorks mailing list archive at Nabble.com.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



--
Randy Coulman
[hidden email]

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: VW7.7.1 Font size differences in List widget between highlight and checkmark

MarkPetersen
Thanks Randy.

Yes, that is the right method to use and works fine.  Just to make the solution a a little more complete for those who follow, here's an example of what I did since I know the checkmark list is always a little bigger:
       
(self builder componentAt: #sitesScrolledList) widget lineGrid: (self builder componentAt:#multiSitesScrolledList) widget lineGrid.

where the #multiSitesScrolledList is the larger lineGrid.

Mark
mpeterse@us.ibm.com