Change headers in xbrowse

Change headers in xbrowse

Postby Marc Vanzegbroeck » Thu Jan 29, 2009 2:31 pm

Hi,

How can I change the Headers in xBrowse while it is displayed?

Thanks,
Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1157
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Change headers in xbrowse

Postby ukoenig » Thu Jan 29, 2009 3:27 pm

Hello Marc,

Change and Test all xBrowse-Settings at Runtime ( Header, Footer, Fonts, Background, Cells .... :
I think, You want to set new values for the header on Button-click ?.
Can You tell me the values, You want to change ?

Download :
http://www.pflegeplus.com/fw_downloads/BRWTools5.zip

Image

Regards
Uwe : :P
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: Change headers in xbrowse

Postby Marc Vanzegbroeck » Thu Jan 29, 2009 6:23 pm

Uwe,

I want the customer to be able to change the header of the xBrowse.
In this example 'Marc' or 'Jan'

Image

In tsbrowse I did something like this:
Code: Select all  Expand view
oBrw:SetHeaders( , , ahoofding,  , , ,  )
oBrw:DrawHeaders()


Regards,
Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1157
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Change headers in xbrowse

Postby nageswaragunupudi » Thu Jan 29, 2009 7:24 pm

Code: Select all  Expand view
oBrw:Jan:cHeader := 'cChangedJan'
oBrw:Refresh()
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Change headers in xbrowse

Postby Marc Vanzegbroeck » Thu Jan 29, 2009 7:44 pm

NageswaraRao,

This is not working. Jan is the text that is in this sample in the cHeader of the 2e row. It's not a variable.

Regards,
Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1157
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Change headers in xbrowse

Postby ukoenig » Thu Jan 29, 2009 8:20 pm

Hello Marc,

any selected Mouse-Clicks inside the xBrowse, will change the Header-Text
Choose one, to do the defined Column-Title-Change ( You can use also VAR'S ).
Another option could be, to change the Head-color as well.

Code: Select all  Expand view
// Old Column-Titles
// ------------------------
oLbx:aCols[ 1 ]:cHeader = Padr("No.", 3)
oLbx:aCols[ 2 ]:cHeader = Padr("Start", 19)

// Define New Column-Titles on any Mouse-Click
// -----------------------------------------------------
for nFor := 1 to 2   // 2 Columns

   oLbx:aCols[ nFor ]:bRClickHeader := ;
   {|r,c,f,o| IIF( o:nCreationOrder = 1,  o:cHeader := "Text 1", o:cHeader := "Text 2"), oLbx:Refresh() }
   
   oLbx:aCols[ nFor ]:bLClickFooter := ;
   {|r,c,f,o| IIF( o:nCreationOrder = 1, o:cHeader := "Text 1", o:cHeader := "Text 2"), oLbx:Refresh() }
   
   oLbx:aCols[ nFor ]:bRClickFooter := ;
   {|r,c,f,o| IIF( o:nCreationOrder = 1, o:cHeader := "Text 1", o:cHeader := "Text 2"), oLbx:Refresh() }
   
   oLbx:aCols[ nFor ]:blDClickData  := ;
   {|r,c,f,o| IIF( o:nCreationOrder = 1, o:cHeader := "Text 1", o:cHeader := "Text 2"), oLbx:Refresh() }
   
   oLbx:aCols[ nFor ]:bRClickData := ;
   {|r,c,f,o| IIF( o:nCreationOrder = 1, o:cHeader := "Text 1", o:cHeader := "Text 2"), oLbx:Refresh() }

next



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: Change headers in xbrowse

Postby Marc Vanzegbroeck » Thu Jan 29, 2009 8:53 pm

Thank you Uwe,

It's working very nice now!! :lol:

Regards,
Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1157
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Rick Lipkin and 95 guests