Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh gets aborted by ZOrder
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01625937
Message ID:
01625938
Vues:
55
>Well, maybe yall know this, but I had a rude awakening today. I have a container in a page of a page frame, in said container I have some several thousand objects representing track sections, each track section is itself a container and the refresh of the container have some code for coloring and simple stuff. This was working well but I was in the middle of making some changes to increase the options on how to display each TrackSection when I was told that this was low priority for the person driving the project left the company, so I moved to a different project, and of course forgot all about my unfinished changes... until they called me without warning to show the program to the vice-president and of course it did not work, after they tap on my back for a job well done I started to try to find out what have I done to kill the program, and I could not see anything wrong with it, so I started debugging and then is when I noticed that the Refresh of the container called the refresh of one of its objects and then finished, ignoring all other thousands of objects, then I remembered that I had added ZOrder(0) in the Refresh of the TrackSection class and removing it solved the issue!
>
>Is this a known issue, have you encountered it too? I thought I should write this to warn others, if for anything just for venting!
>
>[PS] Well, writing this down made me think a little more and I kind of understand why this might happen, after all a call to ZOrder needs to deal with all other objects to put them in place, but it would've be nice if this was written somewhere, or if it is indeed written somewhere it would have been even nicer if I had found it! :) [/PS]

What caught my attention in your message are the words "several thousand objects". How do you add these (thousand!) objects to a form? Are they instantiated via a data-driven approach in code? (Just curious, so if this is proprietary information, you can ignore my question).
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform