FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse blank column showing
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
xBrowse blank column showing
Posted: Fri Aug 28, 2009 10:57 PM
I have a strange problem with xBrowse and only with this instance. The code below ends up with a blank column being added before the Code column, and in the first row below the header is has TDIALOG. If I right click on the header I see a checkmark by a blank line above the other column titles. If I uncheck it, the column goes away.

So far, I haven't seen this elsewhere. Any ideas ? Thank you.

// Create the browse control for the parts list
REDEFINE XBROWSE oLbp2 ID 1010 oDgp ON CHANGE (... ) UPDATE

// Set to the database object
oLbp2:setoDBF( oGlp )

add to oLbp2 header "Code" data oGlp:pckcod ALIGN LEFT size 120
add to oLbp2 Header "Partnumber" data oGlp:pcknum ALIGN LEFT size 200
add to oLbp2 header "Description" data oGlp:pckdes ALIGN LEFT size 250
add to oLbp2 header "Quantity" data oGlp:pckqun ALIGN RIGHT size 120
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse blank column showing
Posted: Sat Aug 29, 2009 12:50 AM
Please insert " OF " between "1010" and "oDbp" in the line "REDEFINE ... etc "

REDEFINE XBROWSE oLbp2 ID 1010 OF oDgp ON CHANGE (... ) UPDATE
Regards



G. N. Rao.

Hyderabad, India
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: xBrowse blank column showing
Posted: Sat Aug 29, 2009 06:57 PM

Thanks. I AM getting old ... l looked at that many times and skipped right by it. Perhaps it was because I was thinking columns !

Is there an option to center headers ( horizontal ) while aligning the data left or right ?

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: xBrowse blank column showing
Posted: Sat Aug 29, 2009 08:00 PM
Tim:

Try this way

Code (fw): Select all Collapse
oCol:nHeadStrAlign  := AL_CENTER
oCol:nDataStrAlign  := AL_LEFT
oCol:nFootStrAlign  := AL_RIGHT


Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero

Continue the discussion