FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour behavior nStretchCol
Posts: 1364
Joined: Wed Jun 21, 2006 12:39 AM
behavior nStretchCol
Posted: Tue Nov 11, 2014 12:50 PM

Colleagues, I am using two browse (image attached), both having the property: nStretchCol: = STRETCHCOL_WIDEST, however in one of the work tables and the other stretched my last column. This also happened FWH 12.04 always Harbour, I have another project using xHarbour and works well in both browse. I currently use FWH 14.09. Any ideas ??. Thank you.

http://imageshack.com/a/img538/7880/e12LjV.jpg

regards

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: behavior nStretchCol
Posted: Tue Nov 11, 2014 01:55 PM

It appears as if STRETCHCOL_LAST is used in the second browse, not STRETCHCOL_WIDEST. Can you please recheck your code again?

Please check by
oBrw:bRClicked := { || msginfo( oBrw:nStretchCol ) }

Regards



G. N. Rao.

Hyderabad, India
Posts: 1364
Joined: Wed Jun 21, 2006 12:39 AM
Re: behavior nStretchCol
Posted: Tue Nov 11, 2014 03:59 PM

Mr. Rao, thanks for replying, I tried your suggestion and puts me in both tables - 2 which is correct. Browse Both have the same property (STRETCHCOL_WIDEST) This does not happen using xHarbour, any ideas?. Thank you very much.

regards

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: behavior nStretchCol
Posted: Tue Nov 11, 2014 04:21 PM
This does not happen using xHarbour

This is quite surprising to me too.

I can not figure out what must be happening unless I have a sample which I can compile myself and reproduce the problem at my end.

I can now think of these possibilities.
1) Manual setting of large nWidth of the column either by code or by save/restore feature
2) Very large cEditPicture

Through oBrw:bRClicked or otherwise ascertain the following internal values.
a) oBrw:aCols[ 6 ]:nWidth
b) oBrw:aCols[ 6 ]:cEditPicture
c) oBrw:aStretchInfo[ 1 ]
d) oBrw:aStretchInfo[ 2 ]

You may try something like:
oBrw:bRClicked := { || XBrowse( { { oBrw:aCols[ 6 ]:cEditPicture, oBrw:aCols[ 6 ]:nWidth }, oBrw:aStretchInfo } ) }
Regards



G. N. Rao.

Hyderabad, India
Posts: 1364
Joined: Wed Jun 21, 2006 12:39 AM
Re: behavior nStretchCol
Posted: Wed Nov 12, 2014 12:49 PM

Mr Rao, I followed your suggestion, I return values are:
oBrw: aCol [6]: nWidth = 80, oBrw: aCol [6]: cEditPicture = "Z 999,999.99" and oBrw: aStretchInfo not seem to be an array, if I VALTYPE (oBrw: aStretchInfo) == "U". Will this error here ??? Thank you for your help.

regards

Continue the discussion