Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Very slow form release
Message
 
 
To
07/06/2002 08:50:37
Denis Filer
University of Oxford
United Kingdom
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00665839
Message ID:
00665924
Views:
21
Denis,

2000 labels will just take time to destruct.

Do you have any code in the Destroy() of your labels? Do you have a lot of code in the Label class? You might be able to speed up the object destruction by minimizing the size of the label class. You could potentially migrate most of the code to the form itself and just have the Label.Click() delegate the call to a method of the form.

As a test, try using a SetAll() to make them all Visible = .f. and see if removing them from the event loop will speed up their destruction.

>Cetin, I understand your point and my intuition tells me you are right not to generate the maps in this way. However, it works so very well I am tempted to pursue this method ... especially if a slowish closedown is the main price to pay. The advantage of adding the objects as I do is that the classed labels have properties responding to clicks, mouse movements, etc. Also, I can choose a wide range of symbols and text linked to the label captions, setting these from relevant DBF map style fields. I’m not sure I can get this same flexibility in another way (drawing lines and boxes?). Using a graph interface, I don’t think I have the same close control of the points or other elements of my map module such as the map grid and related buttons specific to this app. Well, I daresay I could discover a way to link an existing graph app - I’ve tickered with msgraph and haven’t got very far frankly. With a grid, do you mean each grid cell is a potential point? I did try this before but it lacked
>the x/y resolution I need. Denis
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform