Welcome, Guest. Please login or register.

Author Topic: RAD / IDE  (Read 1246 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Gofromiel

  • Newbie
  • *
  • Join Date: Jul 2004
  • Posts: 38
    • Show all replies
    • http://www.gofromiel.com
Re: RAD / IDE
« on: February 08, 2006, 07:46:44 PM »
If you are interested in Feelin I might help you by giving you hints or code examples. Currently, there is no GUI builder for Feelin but XML is very simple to use and you don't have to compile anything.

Still, you might have to learn C if the classes available are not enough for you. "line.c" is a good example of how using private classes and private code with XML defined UI.

Offline Gofromiel

  • Newbie
  • *
  • Join Date: Jul 2004
  • Posts: 38
    • Show all replies
    • http://www.gofromiel.com
Re: RAD / IDE
« Reply #1 on: February 09, 2006, 02:08:45 AM »
It all depends on what you want to do. If you need to create objects from custom classes (embended in you code like the "lines" demo) all you have to do is create an array of entities with the F_ENTITIES_??? macros then use the FA_Document_Entities attribute when you create your XMLApplication object. Then, in your XML sources all you have to do is use entities as class names.

Let's say you have created a custom class and its entity is  "mybutton", the XML file could look like this:

Code: [Select]
<?xml version=&quot;1.0&quot; ?>

<feelin:application>
...
    <Window id=&quot;win&quot; Title=&quot;Test&quot; Open=&quot;true&quot;>
        <&mybutton; Text=&quot;This is my button&quot; />
    </Window>
...
</feelin:application>

Easy hu ? Do you understand (mostly) ?

Offline Gofromiel

  • Newbie
  • *
  • Join Date: Jul 2004
  • Posts: 38
    • Show all replies
    • http://www.gofromiel.com
Re: RAD / IDE
« Reply #2 on: February 09, 2006, 12:27:54 PM »
Your "square" example is really easy to do. All you have to do is a GUI with a String object (for input) and a Text object (for output). You can limit String input characters with FA_String_Accept (use the special value FV_String_Decimal to limit characters to "0123456789"). Then set a notification upon the FA_String_Changed attribute (which is triggered when the user press FV_KEY_ENTER within the object). This notification calls a hook which computes the square value, create a string and set the FA_Text attribute of the Text object to display the result.

If you want, you can send me your current code and I'll make a tutorial.

Offline Gofromiel

  • Newbie
  • *
  • Join Date: Jul 2004
  • Posts: 38
    • Show all replies
    • http://www.gofromiel.com
Re: RAD / IDE
« Reply #3 on: February 09, 2006, 10:07:27 PM »
@motorollin: the "c" function goes into the "c" file. The UI defined in the XML document is loaded by a XMLObject (or XMLApplication) object, which generate objects from the XML source.

Please send me a piece of code (or at least explain what you want to do) so I can create a tutorial for you. It'll help more seeing actual code then read my words and trying to figure it out :-)