After setting the options for Application Main Window, the next step is to set the properties of application as below. For this window, you have the option to set a window caption to appear in the title bar, an icon to display on the same bar, the border style, the default window size (width and height), border width, caption buttons, form closing behavior and,on start or on close action.

app_3

Caption

Specifies a text string that identifies the application to the user. Use Caption to specify the text string that appears as a window title or labels for the application. To underline a character in a Caption that labels the application, include an ampersand (&) before the character. To display an ampersand character in the caption, use two ampersands (&&).

Icon

To load an icon, you need to click the Load button, and select an icon (.ico) file that is 16x16 pixels in dimension. If you choose a larger image, it will be automatically scaled to the 16x16 pixel dimension.

You can also clear the icon that you have chosen, if you decide not to display an icon, simply by clicking the Clear button.

Border Style

Default: None

Specifies the appearance and behavior of the form border. Use Border Style to get or set the appearance and behavior of the form border. Border Style can be any of the following values:

None - Not resizable; no visible border line

Dialog - Not resizable; standard dialog box border

Single - Not resizable; single-line border

Sizeable - Standard resizable border

Tool Window - Like Single but with a smaller caption

Sizeable Tool Window - Like Sizeable with a smaller caption

Width

Default: 640

Specifies the horizontal size of the form in pixels. Use the Width property to change the width of the form.

Height

Default: 480

Specifies the vertical size of the form in pixels. Use the Height property to change the height of the form.

Border Width

Default: 0

Specifies the width of the form's border in pixels. Use Border Width to get or set the width of the form's border

Caption Buttons

Allows you to select which application caption buttons are visible
 
Minimize Button
Toggles whether the Minimize image228 Button is visible
 
Maximize Button
Toggles whether the Maximize image229 Button is visible
 
Close Button
Toggles whether the Close image230 Button is visible

Align

Specifies the alignment of the form. The options are:

ž
None
Form can be moved anywhere because it is not aligned to anything

ž Client
Aligns itself to the available client area by expanding to fill the area that it is in

ž Left
Aligns itself to the left side of the area growing or shrinking to match parent height

ž Right
Aligns itself to the right side of the area growing or shrinking to match parent height

ž Top
Aligns itself to the top side of the area growing or shrinking to match parent width

ž Bottom
Aligns itself to the bottom side of the area growing or shrinking to match parent width

Form Closing Behavior
 
Determines the behavior of the application when the user closes it. R:BASE 7.6 allows for several styles of closing to enhance your application:

·None  
·Bottom Right to Top Left  
·Top Left to Bottom Right  
·Vertical Sides to Center  
·Horizontal Sides to Center  
·Collapse to Center  
·Change Form Transparency  

On Start Action
Specifies a procedure to run before the application main window is displayed.

On Close Action
Specifies a procedure to run before the application main window is closed.

Use Themes
Specifies an artistic representation theme over the application, which enhances the visual display.

Show Grip Size
Specifies if the handle grip, to resize the application window, is displayed on the bottom right corner.

Connect Database on Startup
Specifies if the application connects the database it is assigned to on startup. The database is usually in the same directory as the application file. To set the database, choose "Options" > "Set Database and Path" from the Menu Bar.

Show Status Bar
Specifies if the Status Bar is displayed across the bottom of the application window. The status bar displays the date and time as well as the status of the three lockable keys on the keyboard: CAPS, NUM, and SCR.

See Also:
Part 1: Application Main Window  
Part 3: Images  
Part 4: Actions  
Part 5: Main Menu  
Part 6: Toolbar Drop-Down Menus  
Part 7: Toolbar  
Part 8: Testing Your Application  
Part 9: Advanced Application Settings