IBM Support

IC65181: HATS RCP PROBLEM DRAWING WIDGETS WHEN FONT SIZE CHANGED IN TEMPLATE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In a HATS RCP application you can override the getControlFont
    method in the RCPTemplate class to allow a custom font to be
    used for the controls on the screen.  However, when you change
    the font size in the getControlFont method the widgets in the
    RCP application do not get laid out correctly.  The font size
    does get changed for all the widgets but they are not realigned
    based on the new size and they will overlap in some cases when
    there are 2 widgets right next to each other.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: HATS Rich Client users trying to change      *
    *                 the font used by the widgets by overriding   *
    *                 the getControlFont method in their HATS      *
    *                 RCP template.                                *
    ****************************************************************
    * PROBLEM DESCRIPTION: When the getControlFont method is       *
    *                      overridden in the template of a HATS    *
    *                      RCP project the changes made to the     *
    *                      font in this method are not being       *
    *                      applied correctly to the resulting      *
    *                      transformation.                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The getControlFont method in the template of a HATS Rich
    Client project allows the font used for widgets to be changed
    dynamically in the project.  However, changing the font in
    this method was causing the rendered screen to be incorrectly
    laid out.  As a result, the end user could see fields
    overlapping or the text in the fields being truncated.
    

Problem conclusion

  • The render methods of both the DefaultRendering and
    ComponentRendering classes were modified to apply the styles
    set in the template to the widgets before the layout method
    was run.  By doing this, the widgets would have the correct
    fonts already applied to them before the layout code, which
    determines the size and location of the widgets on the
    transformation, was run.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC65181

  • Reported component name

    RATL HATS MULTI

  • Reported component ID

    5724U6700

  • Reported release

    750

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-12-16

  • Closed date

    2010-02-25

  • Last modified date

    2010-02-25

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  • RCPUI
    

Fix information

  • Fixed component name

    RATL HATS MULTI

  • Fixed component ID

    5724U6700

Applicable component levels

  • R710 PSN

       UP

  • R750 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXKAY","label":"IBM Host Access Transformation Services"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
25 February 2010