×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    24

    Label alignment on dialog

    Hi all,

    I am having a view architecture application in c++.
    How to align label on dialog to left, centre, right ?

  2. #2
    Super Contributor
    Join Date
    May 2003
    Location
    Vancouver, Canada
    Posts
    985
    There are flags horiz_align and vert_align. For set horiz_align, you can set it to EHLeft, EHCenter or EHRight.

    Antony

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    24
    I have tried with the following, not success at all, still display with a left aligned label.
    Is that some kind of bug in Symbian ????

    DLG_LINE {
    id=ECallDlgLabelStatus;
    type = EEikCtLabel; // aus uikon.hrh
    control = LABEL {
    horiz_align=EEikLabelAlignHCenter;
    txt="Test";
    };

  4. #4
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    57

    Re: Label alignment on dialog

    Hi everybody,
    I have the same problem with my label. I tried to change it both in the RESOURCE and with SetAligment but it didn't work.
    Is that a S60 bug or am I doing somkething wrong?
    BTW, alignment works well with IMAGE.

    Imzadi

  5. #5
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Helsinki
    Posts
    63

    Re: Label alignment on dialog

    The methods
    Code:
    	CEikLabel::SetAlignment( EHRightVTop );
    	CEikLabel::SetAlignment( EHLeftVTop );
    	CEikLabel::SetAlignment( EHRightVCenter );
    work for me on S60_3rd_MR, but I am not using a dialog.

    I don't know if this info is useful, when using dialogs.

    - Jyrki

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×