How to Change TsBrowse Columns dynamically from its Dialog.

Post Reply
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

How to Change TsBrowse Columns dynamically from its Dialog.

Post by RAMESHBABU »

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
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

oBrw:SetColumns( aData, aHeaders, aColSizes )
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Post by RAMESHBABU »

Mr.james

Thank you for your attention.

Can you kindly give me any working sample.

Regards

- Ramesh Babu P
Post Reply