Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxListCtrl and OnGetItemText

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxListCtrl and OnGetItemText
#3455
Posted by: econder 2004-03-05 00:17:23
Hello,

I am having problems retrieving text from a line in a wxListCtrl. I'm trying to use OnGetItemText, but I keep getting errors saying I'm using it in the wrong context.

Here is my code:

void MyFrame::OnGetItemText(long item, long column) const {
    wxString[] itemText;
    for(column = 0; column < ctrlCurrentFunctions->GetColumnCount(); column++) {
        itemText[column] = ctrlCurrentFunctions->OnGetItemText(item, column);
    }
    wxMessageBox(itemText[0] + column[1] + column[2]);
}
Can anybody help me out with this?

Thanks in advance!
econder

Message2. Re: wxListCtrl and OnGetItemText
#3482
Posted by: econder 2004-03-09 04:41:40
Nevermind everyone, I finally figured this out! : )
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥860.00 ·
 
 
¥410.00 ·
 
 
¥288.00 ·
 
 
¥918.00 ·
 
 
¥288.00 ·
 
 
¥264.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0