×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Jan 2012
    Posts
    139

    Displaying Custom ListBox

    Hello All
    I have Two Array
    Array1 contains date and time
    Array2 contains sometitles..

    I want to display both items in single row in listbox
    but with different font
    like..
    Title date&time
    font of date&time is smaller than Title.

    Thank You.

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

    Re: Displaying Custom ListBox

    Basically there are no listboxes that would fit the criteria directly, you could see them summarized in: http://www.developer.nokia.com/Commu...ymbian_C%2B%2B

    You could maybe try if CAknSingleHeadingStyleListBox or CAknDoubleTimeStyleListBox would fit your use case.

  3. #3
    Regular Contributor
    Join Date
    Jan 2012
    Posts
    139

    Re: Displaying Custom ListBox

    and one more thing
    I want to read a file but I dont want to declare size of array, like TBuf<500> ibuf
    I want to use dynamic array which will be created according to the file size..
    kindly tell me how can i do this??
    Thank you.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: Displaying Custom ListBox

    You can also find some complex listbox customization examples in the Wiki, like http://www.developer.nokia.com/Commu..._a_list_box%3F, such approach enables you to display things with a uniform font for example.
    TBuf is sized in compilation time, use HBufC or RBuf for deciding size in runtime.

  5. #5
    Regular Contributor
    Join Date
    Jan 2012
    Posts
    139

    Re: Displaying Custom ListBox

    HBufC is not compatible with Read()...

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: Displaying Custom ListBox

    But HBufC::Des is. Note that you may have to store it into a temporary variable (TPtr) prior to passing it to RFile::Read.

Similar Threads

  1. Displaying icons in listbox
    By siva_321 in forum Symbian
    Replies: 15
    Last Post: 2009-10-29, 08:59
  2. Problem in displaying custom fonts.
    By savaj in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-05-26, 14:23
  3. Replies: 1
    Last Post: 2009-04-13, 14:03
  4. Replies: 2
    Last Post: 2008-09-24, 08:14
  5. Using skins! Custom Listbox / Custom ListItemDrawer
    By akrapacs in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-01-22, 10:05

Posting Permissions

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