Search code examples
powerbuilder

PowerBuilder Tabpage


I have a Tabpage (tab_1) in PowerBuilder, What I want to do is Insert a Tab Page in that (tab_1) whenever I click a button. It will insert tab pages thru coding. I want to replicate whatever (Right Click Insert Tab page does...) Any help? thanks.


Solution

  • To add a tabpage at runtime, you need to

    • prepare a visual userobject that contains the controls (and preferably the processing code)
    • use the OpenTab() or OpenTabWithParm() methods to add a new page to the Tab with the desired content when the button click occurs.