Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbar, removing container
Message
From
30/10/2017 13:09:44
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Toolbar, removing container
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01655282
Message ID:
01655282
Views:
57
Hi all,

Just working with my first toolbar. Having trouble with this:

- toolbar contains containers
- each container contains 2 command buttons
- 1 command button is supposed to remove the container from the toolbar

I can "sort of" remove the container with a call from the command button's click like:

THIS.PARENT.PARENT.RemoveObject(THIS.PARENT.Name)

- that is, fire the .RemoveObject() method of the toolbar to remove the container

- the container does indeed disappear from the toolbar but it is still in the toolbars .Objects() collection

I suspect that the reason I cannot get rid of it entirely is because I am trying to destroy the container from a call from within the container

Any ideas?

Albert
Next
Reply
Map
View

Click here to load this message in the networking platform