Results 1 to 6 of 6

Thread: Changing title on a window

  1. #1
    Join Date
    Aug 2005
    Location
    London (the English one!)
    Posts
    378

    Default Changing title on a window

    Hi All,

    How could I change the title on an View that extends AbstractView?
    By title I mean the text that is on the top left of the internal frame (if I use RCP56)

    It is defined in messages.properties under:
    viewName.caption=My Title!

    Thanks

    Benoit

  2. #2
    Join Date
    Aug 2004
    Location
    San Francisco
    Posts
    423

    Default

    viewName.label = My Title

    should do it.

    Jonny

    Quote Originally Posted by benoitx
    Hi All,

    How could I change the title on an View that extends AbstractView?
    By title I mean the text that is on the top left of the internal frame (if I use RCP56)

    It is defined in messages.properties under:
    viewName.caption=My Title!

    Thanks

    Benoit

  3. #3
    Join Date
    Aug 2005
    Location
    London (the English one!)
    Posts
    378

    Default

    Hi Jonny

    Thanks for your reply. My fault for asking an imprecise question.
    I meant to change the title programmatically. My application is launching an internal frame and the title depends on the content.

    1/ How to change programmatically
    2/ when in the lifecycle should I change it? in createControl?

    Thanks

    Benoit

  4. #4
    Join Date
    Aug 2004
    Location
    San Francisco
    Posts
    423

    Default

    Actually, I wondered why you were asking such a simple question.

    I just override getDisplayName, getCaption, getDescription in my concrete view subclass to have a title and tooltips that depend on content. Is there a reason you can't do that?

    Quote Originally Posted by benoitx
    Hi Jonny

    Thanks for your reply. My fault for asking an imprecise question.
    I meant to change the title programmatically. My application is launching an internal frame and the title depends on the content.

    1/ How to change programmatically
    2/ when in the lifecycle should I change it? in createControl?

    Thanks

    Benoit

  5. #5
    Join Date
    Aug 2005
    Location
    London (the English one!)
    Posts
    378

    Talking Ta!

    Quote Originally Posted by jwray
    Is there a reason you can't do that?
    Well, I'd start with ignorance and confusion... I was looking for a setTitle etc and then was happily digging my grave in PageComponentContext etc... Thanks for putting me back on track!

    Benoit.

  6. #6
    Join Date
    Dec 2005
    Posts
    8

    Default ...

    By the way why title string has to be changed through override of "get..." and not through a "set" operation ?

    Feedback welcome

Posting Permissions

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