Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Favourites from Properties Window

Status
Not open for further replies.

alvechurchdata

Programmer
Nov 8, 2003
1,737
GB
In VFP 9 it's easy to add properties to "Favourites" in the Properties Window. Is there any way of removing them. Sometimes I've managed to remove one by resetting _MemberData to default but I would hope that there's a more reliable way

Geoff Franklin
 
Hi Geoff.

You can edit the contents of _MemberData and remove or edit the entry for the PEM you don't want in Favorites. Look for an XML node that starts with:

<memberdata name="somename"

and remove everything up to the next "/>". Alternatively, remove the:

favorites="True"

attribute from the node.

Doug
 
Thanks Doug. I was afraid that I was missing some really easy way of doing it.

My own mess was made worse by the fact that this was a custom button with its own preferences from its class hierarchy but was also inheriting global settings and settings from the container. It took me a little time to track them all down and I was longing to see a "Remove from favourites" option on the menu.

Geoff Franklin
 
It was the Hierarchy button one the MemberData Editor that lead me to the global setting in FoxCode.

Which leads to a usability question about the Editor interface; why do I have to tick the "Favorites" tick box and then select "False" from a combo in order to remove the entry? Both controls have exactly the same tooltip: "Specifies whether this member appears on the Favorites tab of the Properties window". Is there some situation where the combo gets extended to include a third option?

Geoff Franklin
 
Hi Geoff.

>why do I have to tick the "Favorites" tick box and then select "False" from a combo in order to remove the entry?

Turning on the checkbox means that the MemberData Editor will write the value in the combobox to _MemberData; with the checkbox turned off, it doesn't. This is important because a parent class may define a value for Favorites and then in a subclass, the checkbox allows you to decide whether to override the parent value or not.

Doug
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top