I had asked earlier about placing other objects in the toolbar and following 
Christian's advice on using the NSToolbarMBS class was able to get things 
working (at least in Cocoa). The immediate need is to place a canvas 
(containing a few other controls) in the toolbar, similar to how iTunes 
displays playback information.

For the most part this works (see: 
http://www.miloslick.com/mallincam/MallinCam_Control_2.0_preview.png), but one 
problem that I've come across is that if the canvas contains a bevel button, it 
is unable to respond to mouse clicks. Other types controls (an embedded canvas 
for example) don't have this problem and I was wondering if there is a 
workaround?

Also, has anyone done this in Windows?

Cheers.

-bill k

FYI:

I'm using the following to get the canvas into the toolbar (based loosely on 
the "Toolbar add Textfield" example):

'Properties of winMain:
  InformationView As NSViewMBS 
  cvsInformation As Canvas

Private Sub UpdateToolbar()
  Dim tbar As NSToolbarMBS
  Dim item as NSToolbarItemMBS
  Dim items() As NSToolbarItemMBS
  
  tbar = winMain.NSToolbarMBS
  items = tbar.Items
  
  InformationView = New NSViewMBS(cvsInformation.Handle)
  
  For Each item In items
    If item.Label = "Information Panel" Then
      item.View = InformationView
      item.MaxSize = NSMakeSizeMBS(cvsInformation.Width, cvsInformation.Height)
      item.MinSize = NSMakeSizeMBS(cvsInformation.Width, cvsInformation.Height)
      'item.Label = ""
    End If
  Next item
  
End Sub

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to