xBrowse blank column showing

xBrowse blank column showing

Postby TimStone » 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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: xBrowse blank column showing

Postby nageswaragunupudi » 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
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse blank column showing

Postby TimStone » Sat Aug 29, 2009 6: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: xBrowse blank column showing

Postby Armando » Sat Aug 29, 2009 8:00 pm

Tim:

Try this way

Code: Select all  Expand view

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
User avatar
Armando
 
Posts: 3217
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 67 guests

cron