Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbar separator problem
Message
 
 
To
24/05/2004 10:11:14
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00906509
Message ID:
00906601
Views:
14
Alan,

You can not delete inherited member objects of a class at designtime.

You can delete them at runtime using RemoveObject() calls. You might want to go through and set the Tag = "delete me" for the seperators you want to remove and then you can iterate the objects[] collection in the toolbar.Init() and get rid of them
for each loObject in this.Objects
   if ( loObject.Tag == "delete me" )
      this.RemoveObject( loObject.Name )
   endif
endfor
>Using VFP 8, I have a maintenance form toolbar class containing the usual add/edit/delete/print etc. buttons. I want to change the spacing between buttons by inserting some more separators and deleting others.
>
>The problem is that when I save the modified class, and reopen it, the new separators have gone and deleted ones have returned! It's as if I never edited it in the first place! The same thing happens if I try and subclass the toolbar class and make changes to the subclass.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform