Hi, Micah,
we do impose a 23 pixel minimum height on the area containing your custom UI; this is so the user can read the parameter title. We will also set the width of your custom view to the width of the UI column in the filter viewer (and the user can resize this). You can add subviews that are not automatically resized. Here's an example that makes a very tiny button:
- (NSView *)createViewForParm:(UInt32)parmId { if (parmId == kCustomParamID) { NSView* parent = [[NSView alloc] initWithFrame: NSMakeRect (0, 0, 20, 20)]; NSButton* button = [[NSButton alloc] initWithFrame: NSMakeRect (0, 0, 10, 10)];
[parent setAutoresizesSubviews: NO]; [button setAutoresizingMask: NSViewNotSizable]; [button setTitle: @""]; [parent addSubview: button];
return parent; }
return nil; }
|