What's new in REAL Studio 2010 R5?

From Xojo Documentation

Here's a list of what's new:

  • New Web framework - Users with Enterprise and Web Edition license keys can now build web applications in almost the identical way desktop applications are built. All non-GUI code can be shared between desktop, console and web applications. Applications can be build as stand-alone apps that do not require a web server or as FastCGI apps that run under Apache or IIS. See the documentation for more details.
  • Improved Cocoa Support -More features are supported and more bugs have been fixed. See the release notes below for more details.

Important Note

  • Constructors for WebPages are not supported in this release.
  • There is an issue with apps built as FastCGIs taking up too much CPU. We are working on a fix for this and will release an update to R5 soon.

We added 14 new features and have fixed 79 bugs:

Fixed
2458 These items will be flagged as deprecated starting with 2010r5
3837 Compiler: the `out->properties.count >= base-> properties.count` assertion has been fixed.
5108 Container control instances can have back color and image set. Known issue - they do not render in the IDE correctly (report as #14434)
6931 PostgreSQL Plugin: can now connect to databases that has no password defined (previously it would always connect to the "postgres" db no matter what db name you entered) (2010r5a2).
6955 Printing should no longer default to double spaced
8347 Linux IDE: code editor no longer "bounces" when typing more than half way down the page
9005 Carbon: the background color for windows now matches the background color for controls.


9012 Mac: fixed parsing of short dates on Mac OS 10.6.
9352 Build Steps PDF has been updated
9805 When using a floating properties pane it will hide when the Language Reference or Script editor window is front most (2010r5b1).
10683 Setting the width of a report layout when editing the layout itself works not (this was not possible before) Also, setting a report to print landscape on Windows incorporates the required reassignment of the printer setup string so the user does not need to (2010r5b1).
10694 Plugins will no longer be opened by the ide (either via drag and drop or double click) (2010r5b2).
10856 Compiler: no longer asserts if you have a shared method with the same name as a superclass' instance method.
11339 IDE Script steps should transfer x-platform as intended
11654 IDE and actual run of an application with multiple check boxes on a window layout agrees. Multiple check boxes could be checked in the IDE but were not actually working that way in a built application. This is now fixed.
12617 With recent changes to the wiki the left hand pane should be positioned properly (2010r5b3).
12907 Documentation stated you coudl assign a new value to Folderitem.AbsolutePath which is incorrect. The documentation has been updated
12971 Picture: creating a picture with width/height < 1 or > 32767 now throws an OutOfBoundsException instead of an OutOfMemoryException, or crashing in some circumstances (2010r5a3).
13035 Compiler: no longer crashes if an enum item has an invalid value.
13089 Data entered for UTI's in the file types is now saved and restored in all project types (2010r5b1).
13325 Cocoa: calling RectControl.Refresh() no longer causes the entire window to be refreshed (2010r5b3).
13336 The issue that caused the undo stack to get into an odd state (it could be trying to redo a prior action) has been resolved.
13370 When converting a property to a computed property the backing property no longer loses the default value it was assigned originally.
13422 Several references to specific pages in the old PDF's have been updated to be links in the wiki
13427 A control on a window cannot be named the same as a project item as that will result in an odd compiler error. Naming a contro lthe same as a project folder is safea as the name of the folder is NOT an identifier used by the compiler.
13669 Compiler: the compiler once again errors if you implement an event that doesn't exist.
13753 Cocoa: the "Text" property is no longer always empty. This was a regression introduced in 2010r4 (2010r5a3).
13851 Revamped the command button enabling disabling so it's easier to get it correct in the IDE. Commands that should not be enabled in the IDE for certain types of projects will be disabled and those that should be enabled will be enabled.
13906 Compiler: no longer asserts in Namespaces.cpp:162.
13930 Shell: calling Close on an Interactive Shell on Windows now triggers the Completed event (2010r5a3)
13939 Searches of the local help that use terms with apostrphoes no longer remove the letters after the apostrophe from the search.
13953 RBScript: no longer asserts if the context object has methods with enums in their parameter list or as the return type (2010r5a3).
13988 Segmented control labels can be set using constants
14006 UseGDIPlus setting on the App class for Windows is now a check box as it should have been from the outset (2010r5a2).
14014 RBScript: now works on PowerPC machines
14024 VCP projects that contained absolute paths were not being loaded properly by newer IDE's. This has been fixed
14032 Linux: console apps no longer require libpng to be installed, it is now statically linked to the framework
14047 The local documentation should have improved perfomance when accessing pages that are large and complex like ListBox and TextArea.
14059 Compiler: you can no longer declare directly into the runtime via Lib "". This has never been supported and is now a hard error.
14079 Pages will now properly load their style from saving.
14086 A change in the registration checking code resulted in this bug. It has been fixed for the next release.
14087 Linux: Shell class now works again (2010r5a2).
14090 Cocoa: Label styles are no longer lost after changing the text.
14102 A bug where you could create conflicting names for compiled classes without having obvious duplicate items in the project has been fixed.
14113 Pressing the cmd key should no longer finish an edit (2010r5b3).
14118 Windows: DrawPicture no longer fails to draw 24-bit pictures with GDI+ enabled (this occurred only if the width was not a multiple of 4) - (2010r5a3).
14131 Windows/Linux IDE: Find Next shortcut (F3) now works (2010r5b1).
14138 Autocomplete in the Help window includes all topics in the documentation set
14152 IDE: building/running a new CGI Application (template) no longer fails (2010r5a3).
14164 The IDE no longer allows you to add inappropriate items to the various kinds of projects. You cannot add a web page to a Desktop project nor can you add a Window to a Web project. This makes it so you cannot get to the situation that lead to this IDE crash.
14205 The app properties section titled "debugger" that has the command line and destination properties has been restored (2010r5b3). This was dropped in a prior build.
14211 Cocoa: setting the text of a MenuItem in the current menu bar works (2010r5a3).
14222 Segmented Control: on Windows/Linux the segment widths now mean the content area width instead of the actual button width. This makes things consistent with the Mac. This means a 4 segment control that has widths of 25,25,25,25 respectively, will not actually equal 100 pixels long since the padding of each segment varies between platforms, but we guarantee that the content width will be 25 pixels on all platforms.
14224 Compiler: no longer crashes if the second parameter of AddHandler is not a valid delegate type.
14226 REALSQLDatabase: a Nil DateValue returned from a RecordSet no longer crashes the app (2010r5b3).
14239 MySQLCommunity Plugin: Updating a record (using RecordSet.Update) now works again
14240 On Windows when you stop a running app the status label no longer shows when you resize the debugger panes or the entire window.
14276 Cocoa: trying to open an image on a FolderItem returned from GetOpenFolderitem works now.
14281 Properties that have enumerated ranges of values can no longer be set to a value that is not part of the enumerated range. This could cause the IDE to crash in some circumstances and has been fixed.
14297 REALSQLPreparedStatement: now requires that you use BindType to bind the parameters with an explicit type. See the REALSQLPreparedStatement documentation for a list of valid types.
14315 Compiler: no longer crashes if a class implements a non-existant interface.
14330 Compiler: no longer crashes if you have an Objective-C declare with no parameters.
14357 Linux: FolderItem.MoveFileTo now works again when moving a file into a folder
14359 Cocoa: ampersands in BevelButtons are now stripped as needed.
14362 Cocoa: adding top-level menu items no longer causes a hang.
14376 All build steps items mark the project as dirty when you change them now (2010r5b1).
14378 Console graphics: StringHeight now works, but wrap width is ignored
14411 OpenGLSurface.Open event no longer gets called before the window constructor
14412 The Language Reference entry for folderitem.urlpath has been updated to reflect the fact that this item is read only
14431 Windows: TextField.SelText now works
14433 Extension methods that use "extends byref" now autocomplete
14446 Example project: SettingWindowsIcon.rbp no longer throws a compile error
14494 Windows/Linux: clicking on a disabled SegmentedControl no longer fires the Action event (2010r5b2).
14525 Pasting a color property no longer assigns a hex constant as the default value (2010r5b2).
14557 Windows: Graphics.ClearRect no longer leaves artifacts around when GDIPlus is enabled
14645 Updating the online documentation & creating a new local version from that fixes this issue (2010r5b3).
14650 When bulding a console application it is no longer possible to select "Cocoa" as this settings is only relevant for applications that have a UI (2010r5b3).
14744 PreparedSQLStatement.SQLSelect: passing parameters to this function now works properly instead of ignoring the last parameter (2010r5b4).
14747 The Cocoa framework options is properly marked as Beta (2010r5b4).
New
7126 Applescripts dropped in to a project now autocomplete
9657 When selecting an item in th project the full path to the item is printed as part of the header information for the item
13471 Local help now obeys the ShowIf and HideIf tags that the online wiki also uses
13589 The splash screen message has been altered to make the expiration mesasge clearer about the expiration date and how long it is until the license expires
13618 The IDE now can accept more than one active license at a time. The About REAL Studio window now has a listing of all valid licenses and their respective expiration date. Also the splash screen will show you the amount of time remaining until the most recent expiration date from any license.
13706 Picture.Save and Picture.GetData now takes an optional parameter specifying the quality level when saving JPEG images. The quality level ranges from 0-100 or -1 meaning the default quality level that REAL Studio has been saving these JPEGs for all these years. You can use the following constants (available on the Picture class) to help you determine the level of quality to save in: QualityMax -- a lossless compression QualityHigh QualityMedium QualityLow QualityMin -- high compression with low quality
14028 The Language Reference will only switch to a new portion of the LR when appropriate. If you already have the LR open and select Language Reference from the Help Menu then the window will show but it will not go back to the home entry. If you had selected Tutorial or one of the other major sections from the Help menu it would move to that section.
14060 Compiler: you can now create delegates that hold weak references to their target object via WeakAddressOf. WeakAddressOf is identical to AddressOf except that it uses a WeakRef under the hood. This can be used to avoid circular references when using delegates. Note that it only works on instance methods and it is an error to use it on shared methods.
14091 The application menu items that read "Hide", "Hide Others", "Services", "Quit" and "Show All" should be properly localized. Carbon did this with no develper intervention but Cocoa does not so REAL Studio handles setting these localized strings up.
14106 The IDE now prompts to update StaticText to Label as it does for other deprecated controls
14107 Plugins SDK: REALCopyPictureCGImage works under Carbon.
14358 The FolderItem has been extended as follows New Method - MacFSRef() As MemoryBlock Shared Function CreateFromMacFSRef(theFSRef as MemoryBlock) As FolderItem This will only work on OS X On Windows and Linux it will throw an PlatformNotSupportedException
14388 Printed output does not run the end of one item right up to the start of the next. There is at least one blank line between.
14470 Items for a web project that are not needed by a desktop or console project are not written to the VCP project file


Changed
14489 Registration window has been updated to show all options for obtaining an 8 digit code if validation should fail.