FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to Change TsBrowse Columns dynamically from its Dialog.
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
How to Change TsBrowse Columns dynamically from its Dialog.
Posted: Thu Mar 23, 2006 05: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
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
How to Change TsBrowse Columns dynamically from its Dialog.
Posted: Thu Mar 23, 2006 05:11 PM

oBrw:SetColumns( aData, aHeaders, aColSizes )

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
How to Change TsBrowse Columns dynamically from its Dialog.
Posted: Fri Mar 24, 2006 02:55 AM

Mr.james

Thank you for your attention.

Can you kindly give me any working sample.

Regards

  • Ramesh Babu P

Continue the discussion