Xojo2024R1: how to add line separator as WebMenuItem to the WebToolbar

I have method that creates WebToolbar on WebPages in the app. One of the buttons shows menu items.
The menu items should be separated, currently I have empty space that I would like to make look like the conventional gray line. What can I do?

Is this what you want?
https://documentation.xojo.com/api/user_interface/web/webmenuitem.html#webmenuitem-addseparator
image

1 Like

Yes, that is what I wanted.
I have tested this code inside the method:

pMenuObjRef.AddSeparator

where pMenuObjRef As WebMenuItem

and it does produce the results I need. Thanks a lot.

1 Like