Discussion Board
-
ListBox Problem
2004-06-03, 08:31
#1
Registered User
hi all
I want to make a listbox with 4 column.
The listbox can be constructed successfully.
The problem is that there is no separator.
So I used SetColumnSeparatorStyleL().
But It`s not same as heading separator style.
Below is the code of what I am doing..
Thank you.
iListBox = new(ELeave) CAknColumnListBox();
iListBox->SetContainerWindowL(*this);
iListBox->ConstructL(this);
iListBox->CreateScrollBarFrameL( ETrue ); // scroll bar
iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(
CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto );
iListBox->SetRect(Rect());
CDesCArray* array=static_cast<CDesCArray*>(iListBox->Model()->ItemTextArray());
// four column
CColumnListBoxData * columnData =
iListBox->ItemDrawer()->ColumnData();
columnData->SetColumnWidthPixelL(0,15);
columnData->SetColumnWidthPixelL(1,15);
columnData->SetColumnWidthPixelL(2,15);
columnData->SetColumnWidthPixelL(3,15);
array->AppendL(......);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules