Information générale
Catégorie:
Conférences & événements
George...
Since I do not know exactly how you plan to use the Etch A Sketch as a demonstration of VFP's non-datacentric capabilities, this information MAY be relatively useless. Nevertheless, I will pass it along for what it is worth.
While the Essential Fox VFP Etch A Sketch is (basically) a game/toy, it DOES use FoxPro tables behind the scenes. The prime example is the data used to "draw" the Essential Fox Conference logo are stored in a table consisting of over 56,000 records. A single record contains the X and Y coordinates of the starting position of the line (as well as the coordinates for the ending position) plus the line width and color. The drawing is essentially a SCAN of the table executing a call to the form's LINE method for each record. Pretty fast execution, right? In fact, I have actually implemented a "throttle" to slow down the drawing of the logo so that the user has time to "absorb the beauty" (OK, I admit it, I need to get a life.) of the drawing process.
Additionally, while the user is drawing a picture, the data for each line segment are being captured in a different table and available for SCANning. Essentially, this is how the "Unshake" action works. It just scans the temporary holding table containing the information about what has been drawn so far and redraws it on the screen. Incidentally, WITHOUT the "throttle" slow-down time.
If you have any further questions or concerns, please do not hesitate to contact me for a more detailed explanation.
...Dave
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement