Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynamicBackColor
Message
De
13/01/2001 20:41:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
DynamicBackColor
Divers
Thread ID:
00463466
Message ID:
00463466
Vues:
55
Hi!

I have a grid (on a page of a pageframe on a form) with the first column that displays the picture stored in a memo field. I have been having a lot of problems with this. It starts out Ok and show the pictures but then it crashes most of the time when I scroll fast using the pageup/pagedown/arrow keys. It sometimes comes up with an error 'Not enough memory to complete the operation' or something like that and then just won't show any pictures and then crashes. Sometimes requiring a reboot.

I have VFP 6.0 SP4 and any help would be great.

Here is my code. (I have tried many different version's of this code but with no luck - with and without the Container, using DynamicFontBold instead of DynamicBackColor etc. etc. etc.)

*-- Form's Init
with ThisForm.pgfItem.pagItem.grdData.Column1

.AddObject('Container1','Container')
.CurrentControl = 'Container1'
.Sparse = .f.

with .Container1
.AddObject('Image1','Image')
.Image1.Stretch = 0
.Image1.Visible = .t.
.Visible = .t.
endwith

*.DynamicFontBold = 'ThisForm.RefreshIcon()'
.DynamicBackColor = 'ThisForm.RefreshIcon()'

endwith

*-- ThisForm.RefreshIcon()
*-- v_item.iconfile is the memo field in the view.
*-- v_item is the RecordSource of the grid.

with ThisForm

.pgfItem.pagItem.grdData.Column1.Container1.Image1.Picture = v_item.iconfile

endwith

*return .t. && while using the DynamicFontBold event

return ThisForm.pgfItem.pagItem.grdData.BackColor
Répondre
Fil
Voir

Click here to load this message in the networking platform