Use the Designer to add the border:
View attachment 31408
Note that I loaded the layout into the Activity but you can load it also in a Panel "manually" created in the code.
Globals
Dim pnlSomeName As Panel
Activity_Create
pnlSomeName.Initialize("")
Activity.AddView(pnlSomeName...)
pnlSomeName.LoadLayout("layMain") <--- you could change the layout name, of course (SaveAs)