FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse header move
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
xBrowse header move
Posted: Sat Jan 31, 2009 01:12 PM

Hi,

Is there a way to disable the column swap if you drag a header of a xbrowse to another column?
I only want the header moved, and not the column.

Thanks,
Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: xBrowse header move
Posted: Sat Jan 31, 2009 01:19 PM
Hello Marc,

the header is connected to the Column,
but You can use my solution ( You question before ),
to change the column-titles ( rename => title 1= title 2, title 2 = title 1 )
The change You can define on any action ( buttons, mouseclick inside the xBrowse ... )

// Change a Col-title on Button-action
// Column 2 with a new title
// -----------------------------------------
REDEFINE BUTTONBMP oBtn  ID 10 OF oFld:aDialogs[1] ;
ACTION ( oLbx:aCols[ 2 ]:cHeader := "New Title", oLbx:Refresh(), ;
.....
.....


You don't need to move the xBrowse-Header.

Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: xBrowse header move
Posted: Sat Jan 31, 2009 01:59 PM

Uwe,

I used your suggestion for changing the text in the headers, but I was just wondering I could change the action that is executed for swapping colums into just swap the headers...
In tsbrowse there was a function that was called everytime you swap columns.

Regards,
Marc

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 header move
Posted: Sun Feb 01, 2009 10:13 AM

Hi,

Is there than a possibility to disable the column-swap?

Thanks,
Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xBrowse header move
Posted: Sun Feb 01, 2009 11:18 AM

Marc,

oBrw:lAllowColSwapping := .F.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: xBrowse header move
Posted: Sun Feb 01, 2009 11:35 AM

Thanks Antonio

Regards,
Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion