Using our old friend the ScriptMenuBar.rex example, I made these changes

  dlg = .SimpleDialog~new("ScriptMenuBar.dll", IDD_SCRIPTMENUBAR_DLG)
...
::class 'SimpleDialog' subclass ResDialog

::method initDialog
  expose menuBar lv

  menuBar = .BinaryMenuBar~new("ScriptMenuBar.dll", IDR_MENU_LV)
  menuBar~attachTo(self)
  menuBar~connectAllCommandEvents

And the example program works exactly the same is it did as a RcDialog.

--
Mark Miesfedl