You are here: Development Standards > Upgrading OSAS > Converting to 7.0x > Graphical User Interface Changes

# Graphical User Interface Changes

OSAS version 7.0 makes use of a new control type (INPUTD) for date fields. There are also other changes in BBj related to the graphical user interface.

Default Fonts in BBj and Visual PRO/5

Graphical forms and controls in the Visual PRO/5 implementation of OSAS 7.0 use the MS Sans Serif font, just as they did in previous versions of OSAS.

Because the MS Sans Serif font is not reliably reproduced on all graphical operating systems under Java, all forms and controls in version 7.0 for BBj implementations use the Arial font instead. Change the default font in the .ARC files to Arial for all controls that currently use MS Sans Serif.

Images

Images on graphical forms and controls in prior versions of OSAS running on the Visual PRO/5 language platform generally used .BMP formatted graphics.

Graphical images under Java must use either the .GIF or .JPG formats to render properly. Include .GIF or .JPG versions of any graphical images on any BBj media and make the necessary changes to the programs that use them to open the correct files.

INPUTD Controls

Date fields in the Visual PRO/5 implementations of OSAS 7.0 continue to use INPUTE controls as they did in prior versions of OSAS.

For BBj implementations, version 7.0 of OSAS makes use of the new INPUTD control offered by BASIS under BBj. The new control offers several advantages.

To implement the INPUTD control in your programs, change the necessary .ARC files to use INPUTD controls instead of the INPUTE control used in prior versions. In addition, each INPUTD control should be accompanied by an associated tool button (like Inquiry fields) that allows the user to open a calendar from which they can select the date instead of entering it.

Property | Value
Control ID | <4000, increasing by 10>*
Name | txt<field name> (for example, txtEndDate>
X Position | <position>**
Y Position | <position>**
Width | <field length>**
Height | 18
Fore Color | <System Default>
Back Color | <System Default>
Font | Arial, Regular, 8
Disabled | checked***
Client Edge | checked
Mask | leave blank
Max Length | 10
Scan with +/- | checked

*Standard OSAS screens have INPUTD controls numbered in increments of 10. This allows you room to add other controls between standard controls if necessary.

**To calculate X position, Y position, and width, refer to “Calculation of Field Sizes”.

***Refer to Disabling Fields later in this section.

For the associated tool button:

Property | Value
Control ID | <control ID of the input control + 11000> (for example, 15010).
Name | btnInq<input field name> (for example, btnInqEndDate)
X Position | <x-position of input control + width of the input control -3>
Y Position | <same as y-position of INPUTE/INPUTN control>
Width | 16
Height | 18
Fore Color | <System Default>
Back Color | <System Default>
Font | Arial, Regular, 8
Disabled | checked*
Client Edge | checked
Face Type | Bitmap
Bitmap File | OSDATE2.GIF

*Refer to Disabling Fields later in this section.