Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6090473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:13:05+00:00 2026-05-23T12:13:05+00:00

So We have simple .eve and .adam files, compiled ASL , and all includes

  • 0

So We have simple .eve and .adam files, compiled ASL, and all includes required for boost and adobe. We need a crossplatform function to make our layout rendered, and movable as real window on our platform (we need it for Mac OS X, Windows, Linux). How to do such thing?

We have started trying to move in direction of simplifiing some tutorials we found in ASL folder (begin) and got some results you can see here. But our approach is not crossplatform or any way eazy to get=( So we ask for your halp in getting how to display a simple window with ok button defined by adam and eve files?

Here is example of simple Adam and simple eve files

layout my_dialog
{
    view dialog(name: localize(\"<xstr id='my_dialog_name'>My Dialog</xstr>\"))
    {
        slider(bind: @my_value, format: {first: 0, last: 100});
        edit_number(name: 'Value:', bind: @my_value, format: '#', alt: 'Alters the value of the slider');
        button (items: [
                           { name: localize(\"<xstr id='ok'>OK</xstr>\"), action: @ok, bind: @result, alt: 'Perform the command with the current settings' },
                           { name: localize(\"<xstr id='reset'>Reset</xstr>\"), action: @reset, modifiers: @opt, alt: 'Reset the dialog settings' }
                       ]);
    }
}

sheet my_sheet
{
interface:
   my_value: 42;
output:
   result <== { value: my_value };
}

that shall generate a window like this on windows:

enter image description here

Please help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:13:05+00:00Added an answer on May 23, 2026 at 12:13 pm

    We have done it here!) it is really simple.

    Source:

    #include <boost/thread/tss.hpp>
    #include <adobe/future/modal_dialog_interface.hpp>
    #include <boost/filesystem/path.hpp>
    
    using namespace std;
    
    inline bool always_break(adobe::name_t, const adobe::any_regular_t&)
        { return true; }
    
    void dialog()
    {
        stringstream       sheet;
        stringstream       layout;
        boost::filesystem::path icon_directory_path;
    
        // The sheet for the dialog
        sheet <<
                            "sheet my_sheet\n"
                            "{\n"
                            "interface:\n"
                            "   my_value: 42;\n"
                            "output:\n"
                            "   result <== { value: my_value };\n"
                            "}\n"
        ;
    
        // the layout
        layout <<
                                    "layout my_dialog\n"
                                    "{\n"
                                    "    view dialog(name: 'My Dialog')\n"
                                    "    {\n"
                                    "        slider(bind: @my_value, format: {first: 0, last: 100});\n"
                                    "        edit_number(name: 'Value:', bind: @my_value, format: '#', alt: 'Alters the value of the slider');\n"
                                    "        button (items: [\n"
                                    "                           { name: 'OK', action: @ok, bind: @result, alt: 'Perform the command with the current settings' },\n"
                                    "                           { name: 'Reset', action: @reset, modifiers: @opt, alt: 'Reset the dialog settings' }\n"
                                    "                       ]);\n"
                                    "    }\n"
                                    "}\n"
            ;
    
        // finally set up the params for the modal dialog interface call
        adobe::dialog_result_t result(adobe::handle_dialog(adobe::dictionary_t(),
                                                           adobe::dictionary_t(),
                                                           adobe::dictionary_t(),
                                                           adobe::dialog_display_s,
                                                           layout,
                                                           sheet,
                                                           &always_break,
                                                           icon_directory_path));
    
        int is_checked(result.command_m[adobe::static_name_t("value")].cast<int>());
            cout << "return value: " << is_checked << endl;
    }
    
    int  main(  )
    {
            dialog();
            cin.get();
        return 0;
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.