問題タブ [nspopupbuttoncell]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
macos - NSPopupButtonCell の強調表示された画像を描画する方法
私は内部に NSPopupButton を持っNSToolbar
ておりborderder = false
、強調表示されたときに色の焼き付きがブレンドされています。私が使用する場合bordered = true
、画像は素敵な暗いオーバーレイで描画されます。
強調表示された状態を同じように描画することを達成しようとしていますbordered=true
PS: NSButtonCell はすぐに使用できbordered = false
ます。
bordered = true
私は持ってオーバーライドすることで動作を達成でき、drawBezel
そこで何もしませんが、知りたいです
私が試したこと:
- ハイライト作成者
- インテリア背景スタイル
- setCellAttribute
-
bordered = false
( NSButtonCell
)で機能する右側の画像に注意してください。