Updated documentation for several wxPG components.
Updated wxPropertyGrid, wxPropertyGridEvent, wxPropertyGridPopulator documentation and removed doxygen-style comments from propgrid.h header file.
This commit is contained in:
@@ -251,23 +251,17 @@ class wxPGValidationInfo;
|
||||
#define wxPG_DEFAULT_IMAGE_SIZE wxDefaultSize
|
||||
|
||||
|
||||
/** This callback function is used for sorting properties.
|
||||
|
||||
Call wxPropertyGrid::SetSortFunction() to set it.
|
||||
|
||||
Sort function should return a value greater than 0 if position of p1 is
|
||||
after p2. So, for instance, when comparing property names, you can use
|
||||
following implementation:
|
||||
|
||||
@code
|
||||
int MyPropertySortFunction(wxPropertyGrid* propGrid,
|
||||
wxPGProperty* p1,
|
||||
wxPGProperty* p2)
|
||||
{
|
||||
return p1->GetBaseName().compare( p2->GetBaseName() );
|
||||
}
|
||||
@endcode
|
||||
*/
|
||||
// This callback function is used for sorting properties.
|
||||
// Call wxPropertyGrid::SetSortFunction() to set it.
|
||||
// Sort function should return a value greater than 0 if position of p1 is
|
||||
// after p2. So, for instance, when comparing property names, you can use
|
||||
// following implementation:
|
||||
// int MyPropertySortFunction(wxPropertyGrid* propGrid,
|
||||
// wxPGProperty* p1,
|
||||
// wxPGProperty* p2)
|
||||
// {
|
||||
// return p1->GetBaseName().compare( p2->GetBaseName() );
|
||||
// }
|
||||
typedef int (*wxPGSortCallback)(wxPropertyGrid* propGrid,
|
||||
wxPGProperty* p1,
|
||||
wxPGProperty* p2);
|
||||
|
Reference in New Issue
Block a user