FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xbrowse hide columns problem
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
xbrowse hide columns problem
Posted: Sat Nov 30, 2013 02:02 PM
Hello,

I have a problem when hide columns in a xbrowse()
I have 64 columns.
When the user is pressing a button, I want to show only 32 columns, so I hide the last 32 columns.
Code (fw): Select all Collapse
oBrw:oHScroll:SetRange(1, 32 )
FOR i = 33 to 64
     oBrw:aCols[i]:hide()
NEXT i
oBrw:refresh()


So far so good, now it shows only 32 columns, but if I scroll completely to the right column, or press CTRL-RIGHT, I get a error.
Do I missing something? I already set the range to 32, but is seems this is not enough :-)

Thanks.
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: xbrowse hide columns problem
Posted: Sat Nov 30, 2013 10:59 PM
Marc,
I use Fhwx 1204 and this code don't give me any error: (I have 34 cols)
Code (fw): Select all Collapse
 For n := 15 to Len(oBrw:aCols)
       oBrw:aCols[n]:Hide()
   Next
   oBrw:Refresh()

Saludos.
Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: xbrowse hide columns problem
Posted: Sun Dec 01, 2013 10:06 AM
Francisco,

Thank you for your reply.
Running the code don't give an error.
The error only occurs after running the code and the scrolling completely to the right and then pressing the arrow.


The version I use is still FW710. In the testxbrw.prg example, I don't get the error when I hide the columns by right-clicking the header and hide a column, so I don't think that it is an error in the release..

Thanks
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: xbrowse hide columns problem
Posted: Sun Dec 01, 2013 10:18 AM

Hi,

I just found that in the example I get the same error, if I hide the last column!
It is solved in the new release?

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: xbrowse hide columns problem
Posted: Mon Dec 02, 2013 01:34 PM

Hi,

Does anyone known what is changed to solved this problem.
The problem is that it's a big existing program that I have to modify, and I'm afraid that I use an newer version of FWH, I will have othe problems...

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xbrowse hide columns problem
Posted: Tue Dec 03, 2013 06:26 AM
or press CTRL-RIGHT, I get a error.

I can not say what was wrong with the old version, but with latest version, I do not get any error when the right most columns are hidden.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion