Page 1 of 1

dcbrowse + fit + autoresize

Posted: Wed Feb 09, 2011 11:49 pm
by Zdeno Bielik
Hi Roger,

when FIT clause is used, then vertical and horizontal scroll bars of DCBROWSE object are displayed wrong or ever.
You can see this simply if you add FIT parameter for dcbrowse object on third tabpage in your example in samples\scale\scale.prg.

Zdeno

Re: dcbrowse + fit + autoresize

Posted: Thu Feb 10, 2011 9:39 am
by rdonnay
There is nothing wrong with the FIT and AUTORESIZE.

That screen was not designed for the FIT clause.

FIT will automatically size the browse to the width of the columns, and in this case that makes the browse wider than it's parent.

I added the FIT clause and reduced the width of the last 3 columns and then it works fine.

Code: Select all

@ 2,2 DCBROWSE oBrowse DATA aDir SIZE 46,11 ;
      PRESENTATION aBrowPres PARENT oTab3 FIT

DCBROWSECOL ELEMENT 1 HEADER 'File Name' WIDTH 10 PARENT oBrowse
DCBROWSECOL ELEMENT 2 HEADER 'File Size' WIDTH 7 PARENT oBrowse
DCBROWSECOL ELEMENT 3 HEADER 'File Date' WIDTH 7 PARENT oBrowse
DCBROWSECOL ELEMENT 4 HEADER 'File Time' WIDTH 7 PARENT oBrowse

Re: dcbrowse + fit + autoresize

Posted: Thu Feb 10, 2011 10:25 am
by Zdeno Bielik
Hi Roger,

thanks for usefull informations. I changed width of columns to 9, 6, 6, 4 and it looks better now.

Anyway, there is something wrong with refreshing object when FIT is used, just try resize whole size of any opened Scaled window and you will see, that after resize dialog object dcbrowse object is resized like there was not used FIT parameter.

Zdeno