THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/08/2006 at 11:29, xxxxxxxx wrote:
Right. In my situation, one group is a dynamic layout (tied to the treeview selection).
Glad that your less elegant way works. :)
When you say that you are updating the entire dialog with elements in it, to what extent. If the groups aren't changing, only the elements, one would think that you could get away with the Set...() methods to update elements. You can even change group titles with SetString() - this should work for statictext as well. I have read that RemoveElements() doesn't update the dialog, but if you are not adding/removing elements this should be of no concern.
For instance, I've recently added a Search feature group that has a treeview (mainly for columns) which is filled with results and cleared without dynamic stuff. Of couse, the treeview has a Refresh() method.
The group also contains a static text that is used for information (searching..., how many items matched). It starts off as an empty string (String("")), but a simple SetString(text) suffices to update.
Basically, there are several levels of 'update' for a dialog or its elements. Adding/removing usually requires the dynamic route. Changing dialog elements should only require Set-ting or specific refreshes for customguis. Resizing, reorganizing elements might be trickier if this is your intention.