Red language executable also opening up a console

145 Views Asked by At

I compiled an executable using following simple code (from Red language websites) in Red language:

Red [title: "test" needs: 'view]
view [
    below
    button
    field
    text "Red is really pretty easy to program."
    text-list
    check
]

I used following command:

red -c myprog.red

It was created without any error. However, when I run it there are 2 problems:

  1. The application window does not have the title given above ("test").

  2. A console window also opens that closes only after the application is shut down. It will be better if such a window does not open at all and only application window opens.

I am working on Windows-7. Where is the problem and how can these be solved? Thanks for your help.

1

There are 1 best solutions below

2
On BEST ANSWER

Use

red -c -t Windows myprog.red

and the compilat is specifically for Windows