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.
私は SWT を使用しています。テキスト (org.eclipse.swt.widgets.Text) とボタン (org.eclipse.swt.widgets.Button) を含む新しいコントロールを作成したいのですが、テキストは左側にあります。そして右側がボタン。
例を見つけるために多くの努力をしましたが、見つかりませんでした...誰かが私に良い例を提供してくれますか? どうもありがとう!
を拡張することでこれを行うことができますComposite。必要なレイアウトを使用して、必要に応じて任意のウィジェットを追加できます。
Composite
CCombo クラスを見ることができます。CCombo は Combo ウィジェットを模倣します。CCombo は、カスタム ウィジェットの設計を検討するための良い例です。