I am trying to add custom behavior to a TExpander. Basically what I am trying to acheive is the following: I've got multiple TExpanders on my form. When the user expands one of these TExpanders, all the other TExpanders should be minimized.

有帮助吗?

解决方案

The easiest way to do this is to handle the OnResize event for the TExpander, and then in that event, check the IsExpanded property of each of the other TExpander panels and set them to False.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top