Active Query Builder support area

DefaultTableWidth improvement suggestion

Avatar
  • updated
  • Completed

I appreciate the depth of the Table object is dependent on many factors but I wonder if the DefaultTableWidth could be improved

If you set this to a fixed value it honours it but I wonder if there could be a degree of auto width sizing

If you set it to -1 it should auto size the width of the table box based on the longest column name (only)

If you set it to -2 it should auto sizes the width of the table box based on the longest column name plus the column meta data text ie Char(25) etc etc


Avatar
Andrew Kennard

Ironically I've just noticed as well if you right click on the table header there is an Auto Fit Object Height but not one for the object width

Avatar

Hi,

I have uploaded v1.26.16 with the new property:

IActiveQueryBuilderX.TableWidthMode = (twmFixed=0, twmAutosizeByContent=1, twmAutosizeByFieldName=2)

Could you please test it?

Avatar
Andrew Kennard

Ooops spoke too soon

twmAutosizeByFieldName seems to work quite well on wide column names but tables with narrower ones not so much

twmAutosizeByContent seems to work quite well although right of box could be tighter to the longest content

Avatar
Andrey Zavyalov, PM

Both modes of width calculation take vertical scroller width into account. Could you please send me a screenshot of the component in twmAutosizeByFieldName mode with narrow column names?

Avatar
Andrew Kennard

Ah OK I understand now. I guess i was expecting it to be tight to the end of the bold text but I understand you are allowing for a scroll bar to appear. If you did not do this either the box has to get wider when it arrives or it overlays the text which would rather defeat the point of this new feature.

Attached is a screen shot with the yellow box showing the pixel or so out but I aggre the rest are OK once I understand how you say it works