ScrollGroupBegin only for Modal

On 01/10/2014 at 15:13, xxxxxxxx wrote:

I'm writing a plugin and need an ASYNC dialog. I tried using ScrollGroupBegin but it only scrolls when my dialog type is MODAL. Whats up with that? Is there not a way to use it with an ASYNC dialog? I need to be able to dock my plugin.

On 01/10/2014 at 16:07, xxxxxxxx wrote:

It should work fine with async dialogs. I've used it in my poselibrary plugins.

Here's a very quick and dirty script manager example.
When I dock the dialog above the OM. The bottom scroll bar appears as expected.

import c4d  
class Dialog(c4d.gui.GeDialog) :  
  
  def CreateLayout(self) :  
  
      flags = c4d.SCROLLGROUP_HORIZ | c4d.SCROLLGROUP_VERT  
      if self.ScrollGroupBegin(0, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, flags, 100, 100) :  
          self.AddButton(1000, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT,600,50)  
          self.GroupEnd()    
  
      return True  
  
  def Command(self, id, msg) :  
      if id == 1000:   
          self.LayoutChanged(1000)  
      return True  
  
dlg = Dialog()  
dlg.Open(c4d.DLG_TYPE_ASYNC)

-ScottA