xBrowse header move

xBrowse header move

Postby Marc Vanzegbroeck » Sat Jan 31, 2009 1: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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: xBrowse header move

Postby ukoenig » Sat Jan 31, 2009 1: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 ... )

Code: Select all  Expand view

// 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 :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: xBrowse header move

Postby Marc Vanzegbroeck » Sat Jan 31, 2009 1: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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: xBrowse header move

Postby Marc Vanzegbroeck » 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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: xBrowse header move

Postby Antonio Linares » Sun Feb 01, 2009 11:18 am

Marc,

oBrw:lAllowColSwapping := .F.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: xBrowse header move

Postby Marc Vanzegbroeck » 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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 67 guests