« Special Plugins for y… | Home | MS SQL Server »

Fun with ImageWell and NSImageViewMBS

For the Cocoa target in REALbasic we are working heavily to update the plug-ins. One thing I want to have is the cocoa classes for the controls ready. And this classes connected with extensions to the RB controls so you can easily access them.

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:
  1. current REALbasic ImageWell Look.
  2. imageFrameStyle = NSImageFramePhoto
  3. imageFrameStyle = NSImageFrameGrayBezel
  4. imageFrameStyle = NSImageFrameGroove
  5. imageFrameStyle = NSImageFrameButton

Second row:
  1. alphaValue = 0.5
  2. imageAlignment = NSImageAlignTopRight and imageFrameStyle = NSImageFramePhoto
  3. imageAlignment = NSImageAlignBottomLeft and imageFrameStyle = NSImageFramePhoto
  4. imageScaling = NSScaleToFit and imageFrameStyle = NSImageFramePhoto
  5. imageScaling = NSScaleProportionally and imageFrameStyle = NSImageFramePhoto
The biggest plugin in space...
14 12 09 - 18:04