How to Change TsBrowse Columns dynamically from its Dialog.

How to Change TsBrowse Columns dynamically from its Dialog.

Postby RAMESHBABU » Thu Mar 23, 2006 5:02 pm

Hi All

Can anybody help me out from the problem defined below:

How I can change the TsBrowse Columns dynamically?

I have dialog from resource and I have some radio buttons
representing 1, 2, 3. I have also a TsBrowse on the same
dialog.

My requirement is"

If I press 1st radio button, only the 1st field from
the database is to be showm in the browser.

Again if I click on the 2nd radio button 1st two
fields of the databse are to be shown in the browser.

Like-wise if I click on the 3rd radio button 1st three
Columns of the databse are to be shown in the browser
dynamically.

Following link provides TSBTEST.ZIP containing
the TSBTEST.PRG TSBTEST.RC TSBTEST.DBF and TSBTEST.EXE

http://hyperupload.com/download/024a1f6 ... t.zip.html

Please note I have used "ACTIVATE DIALOG oDlg CENTERED" in 2nd
function to dimonstrate the functionality need, even though
it is not correct ( I believe! ).

You can test it with Tsbrowse 6.00, 6.01 or higher versions and suggest
me the correct solution to my problem.

Thanks in advance

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 625
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby James Bott » Thu Mar 23, 2006 5:11 pm

oBrw:SetColumns( aData, aHeaders, aColSizes )
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby RAMESHBABU » Fri Mar 24, 2006 2:55 am

Mr.james

Thank you for your attention.

Can you kindly give me any working sample.

Regards

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 625
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 37 guests