FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse Header Resizing (SOLVED)
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
xBrowse Header Resizing (SOLVED)
Posted: Sat Sep 03, 2011 02:49 AM

Hi,

:lAllowRowSizing := .F.
Prevents users to resize rows, but

How can I prevent users to change the size of the Fields in xBrowse???

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse Header Resizing
Posted: Sat Sep 03, 2011 04:15 AM

For individual columns:
oCol:lAllowSizing := .f.

To prevent sizing of all columns in a browse,
oBrw:lAllowSizings := .f.

Regards



G. N. Rao.

Hyderabad, India
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: xBrowse Header Resizing
Posted: Sat Sep 03, 2011 04:41 AM

Thanks Mr. Rao, but that did not work...

I guess is my version of FWH 10.2

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse Header Resizing
Posted: Sat Sep 03, 2011 05:18 AM

AEval( oBrw:aCols, { |o| o:lAllowSizing := .f. } )
should work in older versions.

Regards



G. N. Rao.

Hyderabad, India
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: xBrowse Header Resizing
Posted: Sat Sep 03, 2011 03:32 PM

It worked great... Thanks Mr. Rao....

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: xBrowse Header Resizing
Posted: Sat Sep 03, 2011 07:16 PM
I have been looking in the xBroxse class and can't find anythig to resolve the following:

I Calculate the size of the Columns automatically, and I am trying to fix the Browse in this location, so it does not move sideways, but if I left click, hold and move the pointer to the left, the first column disapears and at the right appear a blank space....





How can I prevent this from happening???

Any help will be appreciated....

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse Header Resizing
Posted: Sat Sep 03, 2011 07:26 PM

Set
oBrw:lKinetic := .f.

Regards



G. N. Rao.

Hyderabad, India
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: xBrowse Header Resizing
Posted: Sat Sep 03, 2011 07:45 PM
nageswaragunupudi wrote:Set
oBrw:lKinetic := .f.

It worked, but only with the mouse, If I use the arrow keys, it istill does it..

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: xBrowse Header Resizing
Posted: Sat Sep 03, 2011 10:03 PM

Hi, try with:

oBrw:nFreeze := 4 //4 is your last visible column

Regards

Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: xBrowse Header Resizing (SOLVED)
Posted: Sat Sep 03, 2011 10:28 PM

Nice, thanks for the info....

It worked great....

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Continue the discussion