Who uses TSBrowse and how ?

Who uses TSBrowse and how ?

Postby TimStone » Sat Aug 04, 2007 4:40 pm

I started using TSBrowse throughout an application using the following:
FWH 7.07
xHarbour July Beta 2007
Windows Vista Ultimate
Advantage Data Server

Suddenly I have people who are working with this complaining of the following sysmptoms:

System lock ups
Browse refreshes not being properly displayed
Long delays loading screens or refreshing data.

None of these problems occured when using FWHarbours standard WBrowse.

Here is my question. I would like to know who uses TSBrowse, if you use it with xHarbour Builder / xCC, if you use it with ADS, and if you experience any problems.

I have noted that it does not behave well with arrays, and it does not pre-process well ( FIELDS and HEADERS especially ), and that the UPDATE command can cause a rapid blinking if it is applied.

Your input would be greatly appreciated.

Tim
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

Postby Rick Lipkin » Sat Aug 04, 2007 10:10 pm

Tim

I know you like a MSVC ( like ) compiler .. I do as well .. however, I have found I can not compile Hernan's TwBrowse with anything else but Borland 55 or 5.82.

If I am using ADS .. I compile with Borland and use Hernan's Twbrowse .. it is optimized for either ADS or DBFCDX .. actually ADS works very nicely.

If I am using ADO and local recordsets I find the standard FWH Twbrowse to be work very nicely.

For me .. if it is ADS driven from the backend .. Borland and Hernan's Twbrowse is the best choice.

Just my 2 cents worth.

Rick Lipkin
SC Dept of Health, USA
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Borland

Postby TimStone » Sat Aug 04, 2007 10:39 pm

I really don't want to revert to Borland, but I can identify with the problem using Hernan's browse with xCC.

I moved from WBrowse because I wanted 1) header colors, 2) column alignment, and 3) larger cells and a better font. Alternate shading of rows is nice also. These are available in TSBrowse. I was willing to go for the additional coding, but its just getting to be frustrating with all the problems that have arisen.

If no one who uses TSBrowse has any problems with advantage, then I can assume its in my code ... but I would sure like to know the experience of others.
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

Postby avista » Mon Aug 06, 2007 12:03 pm

TSBrowse is great class.... i use it in 99% in my programs ...but i use FW for Windows ....(16 bit) i dont know is it something different but i can send you some samples if you want.

Regards,
User avatar
avista
 
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Appreciated

Postby TimStone » Mon Aug 06, 2007 4:15 pm

I like the layout, but the concern is with 32 bit, Microsoft compatible, functioning specifically using the latest builds of FWH and xHarbour Builder.

My guess is there may be incompatibilities between the latest FWH and TSBrowse. For example, we cannot use TSBrowse's TMETAFIL because it does not support the full functionality included in FWH.

As a realtively older piece of code, it would be nice, as has been suggested on this forum previously, that we make a concerted effort to perhaps fold it into FWH.

:)
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

Postby R.F. » Mon Aug 06, 2007 4:23 pm

Tim:

TSBrowse is a great class with a lot of visual enhacements but internally has serveral programming issues, I mean, is not fully optimized.

Me and my team had to make serveral corrections to TSBrowse Class in order to make it work under 32 bits with xHarbour and ADS.

If I can recall, we used the same source code in both 16 bits and 32 bits, however we made several changes to make it work with ADS, specially because it loses the "alias" when working under MDI.

Let me see if I have the source around to send you a copy with our changes so you will see if you can find it useful for you.
Saludos
R.F.
R.F.
 
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Thank you

Postby TimStone » Mon Aug 06, 2007 4:33 pm

Rene,

That sounds like what I'm running into. I have James most recent version. Losing the record pointer is key to the problems I'm facing.

WBrowse is very stable and never gives me any problems but I sure wish we had more flexibility in its display.

Tim

My direct email is timstone@masterlinksoftware.com

Thank you.
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

Postby James Bott » Mon Aug 06, 2007 4:38 pm

Rene,

If you will send me a copy also, I will add your changes to the changes I have made and then post it on my website.

Tim,
Is your app MDI? If so, perhaps that is why I haven't seen any problems since I never use MDI.

Thanks,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Application

Postby TimStone » Mon Aug 06, 2007 4:45 pm

No, at this time the application is not MDI, but it does use ADS, and the comment about losing the Alias makes a lot of sense with some of the behaviors I see.
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

Postby James Bott » Mon Aug 06, 2007 4:46 pm

Tim,

I have found one problem. Here is TWBrowse's skip method:

Code: Select all  Expand view
METHOD Skip( n ) CLASS TWBrowse

   if ::bSkip != nil
      return Eval( ::bSkip, n, Self )
   endif

return ( ::cAlias )->( _DBSkipper( n ) )


And here is TSBrowses skip method:

Code: Select all  Expand view
METHOD Skip( n ) CLASS TSBrowse

   If ::bSkip != Nil
      Return Eval( ::bSkip, n )
   EndIf

Return ::dbSkipper( n )


As you can see, TSBrowse doesn't have the alias reference in the RETURN statement.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby James Bott » Mon Aug 06, 2007 5:01 pm

Tim,

Here is another difference. This code is in TSBrowse:goBottom():

Code: Select all  Expand view
     #ifdef __HARBOUR__
         If ::cDriver == "ADS"
            ::nAt := ::nLogicPos()
         Else
            ::nAt := ::nLen
         EndIf
      #else
         ::nAt := ::nLogicPos()
      #endif


And nowhere in the same method in TWBrowse do I see ::nAt even being set. The methods are quite different in the two classes. I am not sure what the consequences of this may be.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby James Bott » Mon Aug 06, 2007 6:24 pm

I found a number of mostly eof() statements that were not alias referenced which I have fixed.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Differences

Postby TimStone » Mon Aug 06, 2007 6:57 pm

The two classes do have very significant differences. The ADS compatibility will be critical.

I've tried other ways to work with the header background color in WBROWSE also and it does not respond to the nClrForeHead, nClrBackHead values, at least with VISTA. It appears that some of the data values were actually hardcoded and cannot be changed. You saw the screen shot that I had showing essentially no color differentiation for the header.
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

ADS

Postby TimStone » Tue Aug 07, 2007 6:16 pm

Rene,

Did you ever find that file ?

Thanks

Tim
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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 74 guests