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
dcbrowse + fit + autoresize
-
- Posts: 147
- Joined: Thu Jan 28, 2010 9:24 am
- Location: Nitra, Slovakia
- Contact:
Re: dcbrowse + fit + autoresize
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.
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
The eXpress train is coming - and it has more cars.
-
- Posts: 147
- Joined: Thu Jan 28, 2010 9:24 am
- Location: Nitra, Slovakia
- Contact:
Re: dcbrowse + fit + autoresize
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
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