Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要创建一个样式ButtonSpec与其类型设置为相同的按钮,Context有没有办法创建一个ButtonSpec不直接附加到另一个控件的按钮,或者我错过了另一个控件上的简单样式选项?
ButtonSpec
Context
您无法获得独立的 ButtonSpec,但您不需要。创建一个 KryptonButton,然后将 ButtonStyle 设置为 ButtonSpec,它将以与其他控件中存在的 ButtonSpec 相同的方式绘制。如果您需要在按下时显示 KryptonContextMenu,您可以使用 KryptonDropButton。