Forum Discussion

scot1967's avatar
scot1967
Icon for Champion Level 3 rankChampion Level 3
10 years ago
Solved

Working with PropertyGridViews

I have a desktop application that uses a propertygridview to edit program settings.  Once I get the focus set to the propertygridview I need to be able to walk through the properties and check thier settings.  So far I have only been able to get the focus set on the propertygridview with the last property selected to sucessfully check the setting.  How do I get around in the view? 

  •  hi,

     

    have you tried to enable MSAA support and add the Grid object type in the MSAA list (Current project application).

    It may give you the access to the list.

10 Replies

  • m_essaid's avatar
    m_essaid
    Valued Contributor

     hi,

     

    have you tried to enable MSAA support and add the Grid object type in the MSAA list (Current project application).

    It may give you the access to the list.

    • scot1967's avatar
      scot1967
      Icon for Champion Level 3 rankChampion Level 3

      I think  I have this enabled.  I have found the spot where MSAA is enabled and it is checked.  I am not sure what you mean by adding the grid object type in the MSAA list however. 

       

      Currently I can create a properties checkpoint but it only works on the last item in the property grid view.  If I specify another value to check in the checkpoint it will fail unless I manually click the row item in the property grid where that value is located before TC times out waiting.  If I try to add mouse clicks to select that row it will throw an exception indicating,   "Aliases.MyProj.frmMain.MdiClient.frmOptions.pnlMiddle.pgOptions.wItems" object was not found.

       

      • m_essaid's avatar
        m_essaid
        Valued Contributor

        I was talking aboutt this location :

        Options\Current project properties\Open applications\MSAA

        The add the class name of the object in the "list of accepted windows" and check it.

        I hope it might help.

  • Can you please attach a screen shot of object browser for the control or add a sample property grid application?

    • m_essaid's avatar
      m_essaid
      Valued Contributor

      I add there the class name of the controls I use through msaa :

      • scot1967's avatar
        scot1967
        Icon for Champion Level 3 rankChampion Level 3

        I have made progress...

         

        My checkpoint works if I first do a selectrow on the propertygrid, provide a row number for the value and then do a setfocus on the propertygrid.  I would like to avoid this because if the state of the property grid is altered like the rows not being expanded or a row is added in a newer build, my test will fail.  I am not sure what I should add to the MSAA list if anything.  Your thoughts based on this new info?  Thanks!