How to use showOkCancelBox() correctly?

Hi, I am doing something with alertWindow. I want to add two toggleButton and three textEditor to a alertWindow, but the two toggleButtons are order by column not in the same row. So I create a component and add the toggleButtons and textEditors. But the component doesn’t show when I call showOkCancelBox() and pass in my component like this:
bool ok_or_not = w.showOkCancelBox(AlertWindow::NoIcon, “pulse”, " ", “ok”, “cancel”, my_component_);
Does anyone knows how to use this function correctly? Thanks in advance.