Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

bool wxPropertyGrid::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxPG_DEFAULT_STYLE,
const wxChar *  name = wxPropertyGridNameStr 
)

Two step creation. Whenever the control is created without any parameters, use Create to actually create it. Don't access the control's public methods before this is called

See also:
Additional Window Styles

Definition at line 3519 of file propgrid.cpp.

References wxTAB_TRAVERSAL.

Referenced by wxPropertyGrid().

{

    if ( !(style&wxBORDER_MASK) )
        style |= wxSIMPLE_BORDER;

    style |= wxVSCROLL;

#ifdef __WXMSW__
    // This prevents crash under Win2K, but still
    // enables keyboard navigation
    if ( style & wxTAB_TRAVERSAL )
    {
        style &= ~(wxTAB_TRAVERSAL);
        style |= wxWANTS_CHARS;
    }
#else
    if ( style & wxTAB_TRAVERSAL )
        style |= wxWANTS_CHARS;
#endif

    wxScrolledWindow::Create(parent,id,pos,size,style,name);

    Init2();

    return true;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index