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.
多くのアクティビティを持つアプリケーションを開発しています。すべてのアクティビティに同じメニューを実装する方法はありますか?
コード モジュールを使用してメニューを作成できます。
Sub CreateMenu(Act As Activity) Act.AddMenuItem("m1", "m1") Act.AddMenuItem("m2", "m2") Act.AddMenuItem("m3", "m3") End Sub
その後、このメソッドを他のアクティビティから呼び出すことができます。イベントは各アクティビティで処理されます。