Refactored the ui test init some more.
dSearchBox is DONE. This commit resolves ticket #1042. Here are the things fixed between now and last commit.
1) List is now a list. You send a list of the string captions you want in the dropdown menu to it and it will automatically create the menu and update it for you. You can still access the dMenu object using the Menu property.
2) Fixed the memory leak thing going on with the wx functions ShowSearchButton? and ShowCancelButton?. The leak pops up when you initialize either property in the constructor or initProperties (otherwise it's fine). Now, you can set either in the constructor and not get an error.
3) Figured out what was up with the ShowButtonVisible? property not hiding the button. Directly related to #2. Solved.
Note there are now 2 more events:
I included a demo very similar to the dTextBox demo.
Let me know what you think. Remember, you need to use the NateBranch? branch to access this until it is merged with the trunk.