About Oridea Downloads Screenshots Nex Web-browser Oridea Hyperpad Documentation Tutorials Roadmap Contribute Contact |
Simplest Oridea application development tutorial1. RequirmentsWe will develop our Hello, Oridea! application using following software:
%oridea% is a directory where
you install Nex, for example - C:\Oridea Platform.
2.1. Create Project
2.2. Write basic codeInsert following code lines intoClass1.cs code file of your project.
using System;
using Oridea;
using Oridea.Data;
using Oridea.HTUI;
namespace HelloOridea
{
public class IndexPage : Oridea.HTUI.Page
{
public override void GenerateLDP(Courier courier)
{
courier.Transfer("\r\n\r\n<h1>Hello, Oridea!</h1>");
}
}
}
3.1. Project directoryOpen your%oridea% directory. Probably, it contains following elements:
odtp/ skin/ history/ configuration/ nex.english.languageset.xml nex.russian.languageset.xml nex.exe.manifest application.ico Interop.SHDocVw.DLL ICSharpCode.SharpZipLib.DLL AxInterop.SHDocVw.DLL Oridea.DLL Nex.exeOpen %oridea%/odtp/i folder. Create hello folder.
Go to your project. Click on Project > HelloOridea Properties...Output path property to the folder, which you create
before like on the picture:![]() Open Solution Explorer window, expand References item,
right click on Oridea, set Copy Local property to False.Build your project ( Ctrl+Shift+B).
3.2. Registering application in ODTP configuration fileThis step is required only during the application development process, end-users should never modify ODTP configuration file manually, because of.OA files standard available. We will create our
application installer later, now we should register our application in
ODTP configuration manually.To do this, open %oridea%/odtp/oridea.odtp.config.xml file
in Notepad, Visual Studio or
any other text editor that supports UTF-8 text encoding.Insert following lines before </odtp> end tag (after last <domain> tag):
<domain name="hello.i" homepage="odtp:/hello.i/index"
application="Hello, Oridea!">
<category name="">
<page name="index" class="dynamic"
assembly="HelloOridea.dll"
assemblyClass="HelloOridea.IndexPage"
assemblyMethod=""
sidebar-style="" />
</category>
</domain>
This will give to Oridea all needed information about our application, which
now owns domain hello.i, named as
Hello, Oridea! and has default page address
odtp:/hello.i/index
3.3. Running our applicationStart Nex, or restart it if it is already loaded. Click on ☼ hyperlink on your toolbar (located near links to Favorites, History and Search sidebars in bottom-left corner of toolbar). Click on Hello, Oridea! link. Result should look like following:
How this worksNow we try to understand how our Hello, Oridea! application and Oridea works.
|