Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Gabo248 Absent Member.
Absent Member.
1581 views

Main Menu maximized with a background image

Jump to solution

Hi, I´m starting a new release of my management system to include improves and modify the appearence. 

Starting with the main menu, I'm looking for how to get the main menu with a background picture and open it totally maximized for the first time.

Something like this:

.

Could somebody guide me?

Thnks in advance

Gabriel

Gabo248

If somebody calls you "Dinosaur" due to programming with Cobol, answer "yes, but I´m GODZILLA" Cool

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

RE: Main Menu maximized with a background image

Jump to solution

Here is a very simple example of using a layout manager:

      program-id.  test1.

      working-storage section.

      77  key-status is special-names crt status pic 9(5).

           88  ok-button-pressed value 13.

           88  cancel-button-pressed value 27.

      copy "lmresize.def".

      screen section.

      01  screen-1.

          03  label "Test screen", line 2, col 2.

          03  push-button, ok-button, line 2, col 70,

          layout-data = rlm-move-x-any.

          03  push-button, cancel-button, line 4, col 70

          layout-data = rlm-move-x-any.

          03  entry-field, line 4, col 2, size 65, lines 17 cells,

           layout-data = rlm-resize-both-any.

      procedure division.

      main-logic.

          display standard graphical window

             background-low, resizable,

             min-size = 25

             layout-manager = lm-resize.

          display screen-1.

          accept screen-1

           until ok-button-pressed or cancel-button-pressed.

          stop run.

View solution in original post

0 Likes
6 Replies
Micro Focus Expert
Micro Focus Expert

RE: Main Menu maximized with a background image

Jump to solution

If you take a screen and add a bitmap that takes up most of the screen the menu will drop down over the bitmap.

Is this what you are asking? Or are you asking for the menu to be shown as soon as the screen displays?

0 Likes
Gabo248 Absent Member.
Absent Member.

RE: Main Menu maximized with a background image

Jump to solution

Hi shjerpe, thanks for your time.

I tried this but I thougt I could include the picture as I can do in a

button modifying a property or something.

My idea is when the user start the system the first thing he'd see is a

background image with the menu options closed (only the menu names) and

while the user is working everything drop down or is opened over the image.

Something like the image you send me with the module main closed.

Please let me know your thougts

Gabo248

If somebody calls you "Dinosaur" due to programming with Cobol, answer "yes, but I´m GODZILLA" Cool

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: Main Menu maximized with a background image

Jump to solution

I had activated my menu so that you could se that the menu drops down above the bitmap image. Normally, the display would look like this. 

Menu items can have keyboard shortcuts, so the m in main menu could appear to have an underline, the user uses alt m and that menu opens up above the bitmap image

0 Likes
Gabo248 Absent Member.
Absent Member.

RE: Main Menu maximized with a background image

Jump to solution

Thank you shjerpe I'll do this.

Regading how can I get this screen totally maximized could you help me?

I mean, actually when I tried to maximize my system It only maximize the window itself

Gabo248

If somebody calls you "Dinosaur" due to programming with Cobol, answer "yes, but I´m GODZILLA" Cool

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: Main Menu maximized with a background image

Jump to solution

You might want to read up on the Layout Manager in the docs. If you use the layout manager, when your screen are enlarged the controls and text can be automatically enlarged, and when the screen is reduced the controls and text can automatically be reduced.

Or you can use

ACCEPT TERMINAL-ABILITIES FROM TERMINAL-INFO.

This provides   USABLE-SCREEN-HEIGHT   USABLE-SCREEN-WIDTH   PHYSICAL-SCREEN-HEIGHT             PHYSICAL-SCREEN-WIDTH  

based on these values you can move values into your line and column settings for your window, controls as well as choose an appropriate font.

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: Main Menu maximized with a background image

Jump to solution

Here is a very simple example of using a layout manager:

      program-id.  test1.

      working-storage section.

      77  key-status is special-names crt status pic 9(5).

           88  ok-button-pressed value 13.

           88  cancel-button-pressed value 27.

      copy "lmresize.def".

      screen section.

      01  screen-1.

          03  label "Test screen", line 2, col 2.

          03  push-button, ok-button, line 2, col 70,

          layout-data = rlm-move-x-any.

          03  push-button, cancel-button, line 4, col 70

          layout-data = rlm-move-x-any.

          03  entry-field, line 4, col 2, size 65, lines 17 cells,

           layout-data = rlm-resize-both-any.

      procedure division.

      main-logic.

          display standard graphical window

             background-low, resizable,

             min-size = 25

             layout-manager = lm-resize.

          display screen-1.

          accept screen-1

           until ok-button-pressed or cancel-button-pressed.

          stop run.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.