• 1
  • 2
  • 3
  • 4
Thursday, 28 July 2011 18:47

Migration to version 0.86

Written by

As we discussed earlier versions 0.85 and 0.86 will be new milestones for uniGUI library. They will introduce new framework core which brings lots of architectural changes and improvements.

Here is a brief list of these changes:

  • All controls will be descendant of a common root opposed to previous releases where each Control had a different ancestor.
  • Only implemented properties and events are published. This will avoid confusion in previous versions where lots of public and published features in VCL mode were not implemented in Web mode.
  • Class types no longer change among Web and VCL. Now TUniButton is always a TUniButton regardless of the displayed mode.
  • In event handlers Sender parameter will always contain correct class type.
  • As a result of above changes you can safely use as and is operators.
  • Advanced client side event scripting.
  • Extended Server side event handling for click and mouse events.

Other benefits of this new core will become manifest as framework continues to grow. For example, without new core integration of client side scripting would be very difficult.

Since it contains some huge changes, incompatibility with older versions is inevitable.  i.e.  it will not be as easy as opening your projects and simply recompiling it. In some areas it breaks compatibility and you must go through a procedure to make your existing projects compatible with 0.86.0.

Here is the receipt. Please follow these steps exactly as described in below order.

  • Completely uninstall any previous version of uniGUI and remove uniGUI design time libraries from Delphi IDE.
  • Download and install the latest build for version 0.86.0.
  • As always build all packages and Install the design time packages.
  • Make a full backup of your existing project which you want to convert.
  • Before you open the project in Delphi IDE do the following changes.
  • Locate Forms which contain TUniPageControl component.
  • Open the associated DFM file in a Text Editor and replace all TTabSheet instances with TUniTabSheet.
  • Save the DFM file and repeat this for all Forms containing  TUniPageControl control.
  • In order to simplify next steps you can delete the DSK (Desktop) file of the related project.
  • Open the project in the IDE.
  • Open ServerModule.pas.
  • IDE will nag you for some properties that no longer exist. Ignore them and save the ServerModule.pas.
  • For all Forms and Frames in project open them one by one. Again IDE will warn you about several properties that aren't published anymore. Press Ignore all and save the Form.
  • When you try to save modified Form, IDE may complain about some components that have incorrect class types. IDE will prompt you to correct the problem. Answer Yes to all prompts and save the Form.
  • Repeat above steps for all Forms and Frames.
  • Now try building the project.
  • Compiler will generate errors for units X,Y, Z... that do not exist anymore. (e.g. UniControls, UniExtControls, ...etc.) Remove these units from Uses list and save the Form.
  • For some Forms compiler may generate error for some "Unknown class type". Add UniGUIAbstractClasses to Uses list of Form and recompile the project.

Now you have successfully converted your project to version 0.85 and you can run and test it in a web browser. Hopefully all converted projects should run as expected in both VCL and Web mode. If not try to localize the problem or look at the browser JS error logs.

Read 487 times Last modified on Monday, 16 February 2015 11:02

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.

Lastest Blog Posts

  • uniGUI Release Candidate is here! +

    We are happy to announce that uniGUI has switch from beta to RC stage. Finally, we have a Release Candidate Read More
  • uniGUI Trial edition upgraded to version 0.99.96 build 1346 +

    We are happy to announce that a new build for Trial Edition of uniGUI is available. It contains many bug Read More
  • Trial edition is upgraded to version 0.99.96 build 1321 +

    We are happy to announce that a new version for Trial Edition of uniGUI is available. This new version contains Read More
  • uniGUI Trial Edition updated to build 1308 +

    We have updated trial edition to the most recent version. This update will fix an issue which prevented trial editions Read More
  • Version 0.99.95 is available +

    We are glad to announce that version 0.99.95 is available for all uniGUI editions. Trial edition can be downloaded from Read More
  • Welcome to Our New Website +

    Finally our new site is online! It adopts a modern responsive design which makes it compatible will all desktop and Read More
  • Version 0.98 is available +

    We are happy to announce that a new of uniGUI version is available. Version 0.98 brings lots of new features Read More
  • Recent news! +

    After a long intermission; almost more than two years here is a new blog about uniGUI. Those of you who Read More
  • Version 0.89 is available +

    Here is another beta build for uniGUI available for public download. 0.89 is another step towards stability and a major Read More
  • Another update for version 0.88 +

    This update fixes some issues and adds some new features.  It can be downloaded from downloads section. Changelog: 0.88.1.943 +---------------------------------------------------------------------------------------- Read More
  • 1
  • 2
  • 3
  • 4