[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Width of browse column not correct

  • Thread starter Thread starter Patrick Tingen
  • Start date Start date
Status
Not open for further replies.
P

Patrick Tingen

Guest
Vertical scrollbar makes no difference, other than that you need to take into account that it takes up 16 pixels of the available width within the browse. Funny part is, that if you walk the columns of the browse and add up their widths, it does not match with the browse width. That's where I noticed the problem. I was working on resizing logic that would resize only the character columns in the browse. I was planning to use a factor that would be calculated in the window resized trigger, then calculating the amount of space all character columns used and resizing just those columns, but my columns were too wide and I kept thinking that my resize logic was wrong. Even keeping in mind that columns are actually wider than reported didn't make it easier. You have to keep in mind to add 4 when you read the value and to subtract 4 when you set it, so I ended up with distributing pixels evenly accross the character columns. If you make the window (and browse) 100px wider and you have 4 character columns, each will get 25px extra. By the way, according to Matt, the separators are 2px wide, but my drawing program says 1px. If I look at a zoomed in portion of the screen I see this: The cell with value "35,1" should be reported as 27px wide (or, arguably, 28 if you include the separator). Then you could at lease add up all widths and find the same width as that of the browse as a whole. As you can see the scrollbar is 16px wide (15px gray and 1px light gray)

Continue reading...
 
Status
Not open for further replies.
Back
Top