xBrowse questions from newbie

xBrowse questions from newbie

Postby reds » Fri Apr 26, 2019 3:43 pm

Just starting to use FW to convert an old DOS program and have a couple of initial questions on xBrowse

Is there a way of splitting the column headers over two rows

e.g. "Stock Code" & "Cost Price"

to display as headers
Stock Cost
Code Price


I would also like to display entries for logical fields as "Y" or "N"

Many thanks
Peter
reds
 
Posts: 50
Joined: Tue May 16, 2017 12:19 pm
Location: North London

Re: xBrowse questions from newbie

Postby Silvio.Falconi » Fri Apr 26, 2019 4:49 pm

you can see yunus.prg for create xbrowse or if you post the structure of dbf I can help you to build it
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7054
Joined: Thu Oct 18, 2012 7:17 pm

Re: xBrowse questions from newbie

Postby ukoenig » Fri Apr 26, 2019 6:52 pm

to answer Your questions :

Is there a way of splitting the column headers over two rows
e.g. "Stock Code" & "Cost Price"
to display as headers
Stock Cost
Code Price

I would also like to display entries for logical fields as "Y" or "N"


syntax-sample :
( completed with header-splitting ( next post from Mr. Rao ) and shows
the different results of logical field-syntax )

Image

Code: Select all  Expand view

HEADERS "Recno()", "  Last" + CRLF + "( Index )", "First", "Age", "HireDate", "Married"

WITH OBJECT oBrw
     // header linefeed
     :nHeaderLines := 2

     // images for YES / NO
     :Married:SetCheck( { c_path1 + "Checkon.bmp", c_path1 + "Checkoff.bmp" }, EDIT_GET )      
     // or a checkbox
     :Married:SetCheck()  
     
     // group-header
     :SetGroupHeader( "Name", 1, 3 ) // 'Recno()', 'FIRST', 'LAST'
     :SetGroupHeader( "Data", 4, 6 ) // 'AGE', 'HIREDATE', 'MARRIED'

     :CreateFromCode()
END
 


regards
Uwe :D
Last edited by ukoenig on Sat Apr 27, 2019 7:49 am, edited 4 times in total.
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 questions from newbie

Postby nageswaragunupudi » Sat Apr 27, 2019 2:34 am

reds wrote:Just starting to use FW to convert an old DOS program and have a couple of initial questions on xBrowse

Is there a way of splitting the column headers over two rows

e.g. "Stock Code" & "Cost Price"

to display as headers
Stock Cost
Code Price


I would also like to display entries for logical fields as "Y" or "N"

Many thanks
Peter


Specify the header as "Stock Code" + CRLF + "Cost Price"

Specify
oBrw:nHeaderLines := 2
Regards

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

Re: xBrowse questions from newbie

Postby reds » Wed May 01, 2019 6:18 pm

Many thanks all,now sorted
Regards
Peter
reds
 
Posts: 50
Joined: Tue May 16, 2017 12:19 pm
Location: North London


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 124 guests