×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Dublin
    Posts
    240

    Trouble in setting custom control size inside CAknDialog derived class in 5th edition

    Hi,
    http://discussion.forum.nokia.com/fo...1&d=1255348854

    This question is related to CAknDialog customization. Have a look at screen shot attached http://discussion.forum.nokia.com/fo...1&d=1255348854, here I am basically showing a dialog.
    CCustomDialog has CCoeControl (Custom control). Then this control has child control such as label and animation.
    Problem is in setting the rect area of Custom control. I normally override CAknDialog::SetSizeAndPosition() and implement CCustomDialog::SetSizeAndPosition() to set size and position of container. This works fine in S60 3rd Edition.
    But in 5th edition it is not. Everything is perfectly fine inside CCustomDialog::SetSizeAndPosition() and even in CCustomContainer::SizeChanged() till the end of execution of CCustomDialog::SetSizeAndPosition(). Logs in CCustomContainer::SizeChanged() look ok till end of execution of SetSizeAndPosition().

    But then some strange thing happens. Once we are out of CCustomDialog::SetSizeAndPosition(), I think some code from base class CAknDialog, modifies size of container. This reduces size of container and results a grey area above CBA. This i guess something to do with toolbar.
    Any suggestion here to get around this problem?

    Thanks
    Datha
    Attached Images Attached Images

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Trouble in setting custom control size inside CAknDialog derived class in 5th edi

    try overwriting the pre & post layout init functions, those at least were the ones that worked fine with CEikDialog derived stuff, though gotta admit it has been some years that I did work with them last time.

  3. #3
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Dublin
    Posts
    240

    Re: Trouble in setting custom control size inside CAknDialog derived class in 5th edi

    Apparently, this problem has beed resolved by new firmware from manufacturer. Flashed new firmware and all drawing is in correct place.
    Cheers
    Datha

Similar Threads

  1. How does FEP-aware custom text edit control launch FEP dialog under 5th edtion?
    By gregory_sokoloff in forum Symbian User Interface
    Replies: 20
    Last Post: 2009-06-24, 18:13
  2. Icons in s60
    By drizzt6 in forum Mobile Java General
    Replies: 5
    Last Post: 2009-03-06, 09:32
  3. [moved] S60 5th Edition: custom touch with Internet Browser API
    By pixsta in forum Symbian User Interface
    Replies: 0
    Last Post: 2009-02-20, 09:38
  4. Replies: 3
    Last Post: 2009-02-03, 09:04

Posting Permissions

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