Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Known VFP bug ?
Message
De
10/09/1998 08:45:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00134957
Message ID:
00134979
Vues:
11
>Hi,
>
>I have posted this question in another category, but I didn't get an answer, so I'm posting it again.
>
>Run Tastrade application and open the Categories form (Page 2 - List). As you can see, there are only 8 records and you can have 12 records in one grid page. The Vertical Scroll Bar is correctly disabled, but if you click in the lower part of the Bar the grid scrolls. I know that it's not something so serious, but my client doesn't want this occurring in his application (and he's paying my bills).
>
>Regards,
Jose,
I don't use tastrade at all but checked and right. I didn't check what tsGrid its based on doing in depth but a quick fix there. Open project and in classes tsbase locate tsgrid to edit. Replace refresh code with :
*-- Recalc column totals each time grid is refreshed
with this
 .SumColumn()
 lnRecs = reccount(.recordsource)
 if .height >= lnRecs * .rowheight + .headerheight
	.scrollbars = iif(.scrollbars > 1, .scrollbars - 2, .scrollbars)
 else
	.scrollbars = iif(.scrollbars < 2 , .scrollbars + 2, .scrollbars)
 endif
endwith	
More annoying is its sumcolumn method is awfull. Good your client didn't notice it.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform