behavior nStretchCol

behavior nStretchCol

Postby horacio » 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
horacio
 
Posts: 1363
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Re: behavior nStretchCol

Postby nageswaragunupudi » Tue Nov 11, 2014 1: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
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: behavior nStretchCol

Postby horacio » Tue Nov 11, 2014 3: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
horacio
 
Posts: 1363
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Re: behavior nStretchCol

Postby nageswaragunupudi » Tue Nov 11, 2014 4: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
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: behavior nStretchCol

Postby horacio » 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
horacio
 
Posts: 1363
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 75 guests