• No se han encontrado resultados

4. Análisis de caso: Empresa Pública Metropolitana de Agua Potable y Saneamiento

4.2. Formas frecuentes de acoso laboral presentes en la EPMAPS

4.2.1. Formas de acoso laboral

1. Over your SybHealth_target in the System Tree, right-click and select New… from the context menu.

2. On the PB Object tab of the New dialog, select Menu and click OK.

3. Locate the Tree view in the Menu painter (where you see untitled0). This is your “work area”, where you build your menus.

4. The view just to the right is called the WYSIWYG menu view. As you build the menu in the Tree view, you can see what your users will see in the WYSIWYG view. You could build the menu from the WYSIWYG view, but it is not recommended. 5. The view at the bottom is the typical Script view. Notice this is one painter that does

not have the typical Declare Instance Variables tab. That does not mean you cannot put Instance Variables on a menu.

6. In the Script view, click on the first drop down. There you can see the Declare option. Choosing this option puts you on the Declare Instance Variables view.

7. Over untitled0 in the Tree view, right-click and select Insert Submenu Item. You are building the Menu Bar.

8. Type &File. Press the Tab key (DO NOT PRESS THE ENTER KEY). Tabbing opens a new menu item without you having to constantly right-click.

9. Type &Edit. Press the Tab key. 10. Type &Window. Press the Tab key.

11. Type &Help. Now you may press ENTER as this is the last menu item on the Menu Bar.

12. Save your menu in the menus.pbl as m_master.

Detailed Instructions

Task 1: Creating a Menu’s Framework PBL

1. Menus are reusable objects, reusable across multiple applications. In order for you to share menus across multiple applications, it would be best to put them in a separate PBL (or PBLs), that can be added to the Library List of future applications. 2. Create one new PBL to hold your menus. Do so by going to Properties of your

SybHealth_target (via the System Tree). This takes you back to the Library List. Click the New… button and be sure you navigate to your C:\Sybase

Courses\DEV134\Student\Framework directory. Name the new library menus.pbl. 3. Click OK to close the target properties dialog.

Task 2: Creating the m_master Base Menu

1. Over your SybHealth_target in the System Tree, right-click and select New… from the context menu.

2. On the PB Object tab of the New dialog, select Menu and click OK.

3. Locate the Tree view in the Menu painter (where you see untitled0). This is your “work area”, where you build your menus.

4. The view just to the right is called the WYSIWYG menu view. As you build the menu in the Tree view, you can see what your users will see in the WYSIWYG view. You could build the menu from the WYSIWYG view, but it is not recommended. 5. The view at the bottom is the typical Script view. Notice this is one painter that does

not have the typical Declare Instance Variables tab. That does not mean you cannot put Instance Variables on a menu.

6. In the Script view, click on the first drop down. There you can see the Declare option. Choosing this option puts you on the Declare Instance Variables view.

7. Over untitled0 in the Tree view, right-click and select Insert Submenu Item. You are building the Menu Bar.

8. Type &File. Press the Tab key (DO NOT PRESS THE ENTER KEY). Tabbing opens a new menu item without you having to constantly right-click.

9. Type &Edit. Press the Tab key. 10. Type &Window. Press the Tab key.

11. Type &Help. Now you may press ENTER as this is the last menu item on the Menu Bar.

13. Your WYSIWYG should look as follows:

14. Next, you will build the drop down menus, beginning with File. In the Tree view of the painter, right-click over File and select Insert Submenu Item. Enter the following items: &New, &Open, &Close, “-“ (A dash is a separator line, allowing you to logically group menu items within a drop down. Do not enter the quotes.), &Save, Save &As…, “-“ (separator), Page Set&up, Print Pre&view, &Print…, “-“, E&xit. 15. In the menu items properties, add the following Shortcut keys: Ctrl+F4 for Close,

Ctrl+S for Save, Ctrl+P for Print and Alt+F4 for Exit.

16. On the Exit menu item, put in “Exits the application” for the MicroHelp property. You can add other MicroHelp as time permits.

17. WYSIWYG should look as follows:

18. Build the drop down for Edit next with the following items: Cu&t, &Copy, &Paste, “-“, &Find…, &Go To…

19. Add the following Shortcuts: Ctrl+C for Copy, Ctrl+V for Paste, Ctrl+X for Cut, Ctrl+F for Find, Ctrl+G for Go To.

20. Verify your work:

13. Your WYSIWYG should look as follows:

14. Next, you will build the drop down menus, beginning with File. In the Tree view of the painter, right-click over File and select Insert Submenu Item. Enter the following items: &New, &Open, &Close, “-“ (A dash is a separator line, allowing you to logically group menu items within a drop down. Do not enter the quotes.), &Save, Save &As…, “-“ (separator), Page Set&up, Print Pre&view, &Print…, “-“, E&xit. 15. In the menu items properties, add the following Shortcut keys: Ctrl+F4 for Close,

Ctrl+S for Save, Ctrl+P for Print and Alt+F4 for Exit.

16. On the Exit menu item, put in “Exits the application” for the MicroHelp property. You can add other MicroHelp as time permits.

17. WYSIWYG should look as follows:

18. Build the drop down for Edit next with the following items: Cu&t, &Copy, &Paste, “-“, &Find…, &Go To…

19. Add the following Shortcuts: Ctrl+C for Copy, Ctrl+V for Paste, Ctrl+X for Cut, Ctrl+F for Find, Ctrl+G for Go To.

21. Save your menu.

22. Under Window, add the following: Tile &Vertical, Tile &Horizontal, &Layer, &Cascade, “-“, Arrange &Icons, “-“, Close &All.

23. Verify:

24. Under Help, add the following: &SybHealth Help, &Contact Us, “-“, &About… 25. Verify:

26. Save your work.

27. In the Tree view, go back to FileÆNew and Insert a submenu item. This will create a cascaded menu. Name the new item &Claim, followed by a separator, then &Patient and then P&olicy. The WYSIWYG should now look as follows:

21. Save your menu.

22. Under Window, add the following: Tile &Vertical, Tile &Horizontal, &Layer, &Cascade, “-“, Arrange &Icons, “-“, Close &All.

23. Verify:

24. Under Help, add the following: &SybHealth Help, &Contact Us, “-“, &About… 25. Verify:

26. Save your work.

27. In the Tree view, go back to FileÆNew and Insert a submenu item. This will create a cascaded menu. Name the new item &Claim, followed by a separator, then &Patient and then P&olicy. The WYSIWYG should now look as follows:

28. In the Tree view, go back to FileÆOpen and Insert a submenu item. This will create a cascaded menu. Name the new item &Doctors List, followed by a separator, then Claims &Search, another separator and then &Patient Details, another separator and then &Reports. The WYSIWYG should now look as follows:

29. Now, make the menu a contemporary-style menu (PowerBuilder 10.5 and greater). Select m_master from the Tree view of the Menu painter and then in Properties, change the Menu Style property.

30. Go back to these individual menu items and put set the following MenuImage values: Save – Save!, Print – Print! and Exit – Exit!.

28. In the Tree view, go back to FileÆOpen and Insert a submenu item. This will create a cascaded menu. Name the new item &Doctors List, followed by a separator, then Claims &Search, another separator and then &Patient Details, another separator and then &Reports. The WYSIWYG should now look as follows:

29. Now, make the menu a contemporary-style menu (PowerBuilder 10.5 and greater). Select m_master from the Tree view of the Menu painter and then in Properties, change the Menu Style property.

30. Go back to these individual menu items and put set the following MenuImage values: Save – Save!, Print – Print! and Exit – Exit!.

31. Verify your work:

32. Add the following MenuImages under Edit: Find – Find!, Go To – OutputNext!.

31. Verify your work:

33. Verify:

34. Save your work.

35. Next add toolbar icons to common menu items. Remember, toolbar icons are set on the menu item’s Toolbar tab in the Properties view. Below, is a list of menu items that need icons along with the icon values. Add ToolBarItemText where appropriate and as time permits:

a. Save: Save! b. Exit: Exit! c. Find: Find! d. Go To: OutputNext!

36. Notice the order of the toolbar icons in the WYSIWYG view. They are out of order. The Exit icon should always be last on the toolbar.

37. In the Tree view, click on Exit. On the Toolbar tab of Properties, set the

ToolBarItemOrder to 1. This will put the Exit icon on the end of the toolbar. Also set the ToolBarItemSpace to 1. This puts a small break between the Exit icon and the others.

38. Next, click on the root item, m_master, in the Tree view. On the Properties view, change the Toolbar Style to a contemporary toolbar.

33. Verify:

34. Save your work.

35. Next add toolbar icons to common menu items. Remember, toolbar icons are set on the menu item’s Toolbar tab in the Properties view. Below, is a list of menu items that need icons along with the icon values. Add ToolBarItemText where appropriate and as time permits:

a. Save: Save! b. Exit: Exit! c. Find: Find! d. Go To: OutputNext!

36. Notice the order of the toolbar icons in the WYSIWYG view. They are out of order. The Exit icon should always be last on the toolbar.

37. In the Tree view, click on Exit. On the Toolbar tab of Properties, set the

ToolBarItemOrder to 1. This will put the Exit icon on the end of the toolbar. Also set the ToolBarItemSpace to 1. This puts a small break between the Exit icon and the others.

38. Next, click on the root item, m_master, in the Tree view. On the Properties view, change the Toolbar Style to a contemporary toolbar.

39. Note the differences in the WYSIWYG view between traditional and contemporary toolbars.

40. Save m_master and close the painter.