Monday, March 19, 2007

Tip of the Day #2: Customizing Print Preview Screen with Themes

Supported Versions:

. R:BASE 7.6 for Windows (Build: 7.6.1.30316 or higher)
. R:BASE C/S:I 7.6 for Windows (Build: 7.6.1.30316 or higher)
. R:BASE Turbo V-8 for Windows (Build: 8.0.15.30316 or higher)

Did you know that you can customize the Print Preview Screen
to match your application/form theme?

Try the following examples and see what you find.

Example 01 (Theme Name: Razzmatazz)

-- Start
CONNECT RRBYW10
CLS
PRINT Invoice WHERE TransID = 1002 +
OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|ZOOM_TYPE PERCENTAGE +
|ZOOMPERCENT 90 +
|THEMENAME Razzmatazz +
|PREVIEW_BACKGROUND_COLOR 16180442 +
|PREVIEW_CAPTION Running R:BASE Your Way!
RETURN
-- End

Example 02 (Theme Name: R:BASE Rocks):

-- Start
CONNECT RRBYW10
CLS
PRINT Invoice WHERE TransID = 1002 +
OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|ZOOM_TYPE PERCENTAGE +
|ZOOMPERCENT 90 +
|THEMENAME R:BASE Rocks!+
|PREVIEW_BACKGROUND_COLOR [R234,G234,B234] +
|PREVIEW_CAPTION Running R:BASE Your Way!
RETURN
-- End

-- Example 03 (Theme Name: Steel Blue):

-- Start
CONNECT RRBYW10
CLS
PRINT Invoice WHERE TransID = 1002  +
OPTION 'SCREEN +
|WINDOW_STATE MAXIMIZED +
|ZOOM_TYPE PERCENTAGE +
|ZOOMPERCENT 90 +
|THEMENAME Steel Blue +
|PREVIEW_BACKGROUND_COLOR [R81,G81,B81] +
|PREVIEW_CAPTION       Running R:BASE Your Way!'
RETURN
-- End

In example 03, notice the entire OPTION statement is enclosed
in quotes when pre-leading spaces are used to center the text
for caption window used in Steel Blue theme.

Enjoy and make sure to have fun!

Very Best R:egards,

Razzak.

Reply via email to