#9640: wxListCtrl:GetItem docs should mention that SetMask is obligatory

View: New views
2 Messages — Rating Filter:   Alert me  

#9640: wxListCtrl:GetItem docs should mention that SetMask is obligatory

by wxTrac :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ticket URL: <http://trac.wxwidgets.org/ticket/9640>

#9640: wxListCtrl:GetItem docs should mention that SetMask is obligatory
--------------------------+-------------------------------------------------
 Reporter:  techtonik     |       Owner:      
     Type:  defect        |      Status:  new  
 Priority:  normal        |   Milestone:      
Component:  doxygen docs  |     Version:  2.8.8
 Keywords:                |   Blockedby:      
    Patch:  0             |    Blocking:      
--------------------------+-------------------------------------------------
 [http://docs.wxwidgets.org/2.8.8/wx_wxlistctrl.html#wxlistctrlgetitem
 wxListCtrl:GetItem()] docs should mention that setting mask via
 [http://docs.wxwidgets.org/2.8.8/wx_wxlistitem.html#wxlistitemsetmask
 wxListItem::SetMask()] is obligatory to read text, data, image or state
 values.

 I.e. change:
 {{{
 You must call info.SetId() to the ID of item you're interested in before
 calling this method.
 }}}

 To:
 {{{
 You must call info.SetId() to specify the ID of item you're interested in
 before calling this method. You should also explicitly call info.SetMask()
 to fill text, state, image or data values into info fields.
 }}}


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9640>
_______________________________________________
wx-dev mailing list
wx-dev@...
http://lists.wxwidgets.org/mailman/listinfo/wx-dev

Re: #9640: wxListCtrl:GetItem docs should mention that SetMask is obligatory

by wxTrac :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ticket URL: <http://trac.wxwidgets.org/ticket/9640#comment:1>

#9640: wxListCtrl:GetItem docs should mention that SetMask is obligatory
---------------------------+------------------------------------------------
  Reporter:  techtonik     |       Owner:        
      Type:  defect        |      Status:  closed
  Priority:  normal        |   Milestone:        
 Component:  doxygen docs  |     Version:  2.8.8
Resolution:  fixed         |    Keywords:        
 Blockedby:                |       Patch:  0    
  Blocking:                |  
---------------------------+------------------------------------------------
Changes (by FM):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 (In [56898]) clarify wxListCtrl::GetItem (fixes #9640)


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9640#comment:1>
_______________________________________________
wx-dev mailing list
wx-dev@...
http://lists.wxwidgets.org/mailman/listinfo/wx-dev
LightInTheBox - Buy quality products at wholesale price!