Fun with ImageWell and NSImageViewMBS
You can soon use code like the following with MBS Plugins version 10.0 and RB 2010:
ImageWell1.NSImageViewMBS.alphaValue = 0.5
ImageWell1.NSImageViewMBS.imageFrameStyle = NSImageViewMBS.NSImageFramePhoto
ImageWell1.NSImageViewMBS.imageAlignment = NSImageViewMBS.NSImageAlignBottom
And if you use properties like this directly, you can have a lot of Cocoa specific tuning of the controls:
First row:
- current REALbasic ImageWell Look.
- imageFrameStyle = NSImageFramePhoto
- imageFrameStyle = NSImageFrameGrayBezel
- imageFrameStyle = NSImageFrameGroove
- imageFrameStyle = NSImageFrameButton
Second row:
- alphaValue = 0.5
- imageAlignment = NSImageAlignTopRight and imageFrameStyle = NSImageFramePhoto
- imageAlignment = NSImageAlignBottomLeft and imageFrameStyle = NSImageFramePhoto
- imageScaling = NSScaleToFit and imageFrameStyle = NSImageFramePhoto
- imageScaling = NSScaleProportionally and imageFrameStyle = NSImageFramePhoto