Draw icon on toolbar with MBS?

Scratching head. I don’t understand what this is supposed to achieve differently than simply setting the toolbar icon.

dim t as NSToolbarMBS = window1.NSToolbarMBS

dim items() as NSToolbarItemMBS = t.items
for each it as NSToolbarItemMBS in items
  if it.label = "other" then
    it.view = Canvas1.NSViewMBS
  end if
next

@Christian Schmitz: reden wir irgendwie aneinander vorbei? Ich will keine Toolbar-Caption. Das Canvas in der Toolbar soll über die ganze Breite des Canvas gehen. Im Screenshot habe ich nur einen vorhanden Screenshot genommen, weil der etwas großer war als ein Icon.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.