PropertyGridManager-buttons instead of toolba

Help
2009-01-15
2013-05-22
  • Hi,
    I started using wxpropgrig in Python. I use wxPropertyGridManager, but I couldn't figure out if there is a style I can use in order to have buttons for page selection instead of toolbar icons(regular buttons with labels instead of bitmap buttons).

    I will be glad if somebody helps.
    Thanks,
    Slavena

     
    • Jaakko Salli
      Jaakko Salli
      2009-01-15

      Sorry, toolbar is the only built-in method for page selection by user. Of course it is quite simple to implement your own, using buttons, tabs, combo boxes, or whatever (just call wxPropertyGridManager::SelectPage(index) whenever value changes in your 'selector' control).

      Regards,
      Jaakko

       
    • Thank You very much for your reply!
      I did use buttons, quite simple even for a newbie!

      Have a great day!
      Slavena

       

  • Anonymous
    2012-01-13

    A dirty hack could be used after wxPropertyGridManager is created.

    m_PGM = new wxPropertyGridManager(...);
    // Populating the grid
    wxToolBar* pGridToolBar = m_PGM->GetToolBar();
    pGridToolBar->SetWindowStyleFlag(
        pGridToolBar->GetWindowStyleFlag()|
         wxTB_TEXT | wxTB_NO_TOOLTIPS| wxTB_NOICONS);