Forum Discussion

sbkeenan's avatar
sbkeenan
Frequent Contributor
14 years ago

DevExpress.XtraBars.Docking.AutoHideContainer

Hi



I have been trying to work with the DevExpress.XtraBars.Docking.AutoHideContainer control in our application, but am unable to find any properties or methods that work (no doubt, I'm doing something wrong!!)



the control has a button visible, which, when pointed at or clicked, reveals a menu to the side.  Once the menu is visible, I can (I think) work with the controls there (at least, there is a ClickItem method available, which allows me to specify a group and an item that I wich to select.)  However, I cannot find any way of clicking the initial button.  There is a Click method, but this relies on coordinates and I really don't want to be using those for all the obvious reasons.



Has anyone out there managed to successfully work with this control?



Many thanks in advance.



Regards

Stephen.

5 Replies


  • Hi Stephen,





    You can switch a dock panel's visible/hidden state using the following code (the code makes the first panel visible):

    ....WinFormsObject("AutoHideContainer", "").AutoHideInfo.Item(0).AutoHide = false // set it to true to hide the panel





    You can check the ....WinFormsObject("AutoHideContainer", "").AutoHideInfo.Item(0).Caption property to find the needed panel by its caption.


  • Hi Stephen,



    You are welcome. Note that we've also added a VBScript sample to the How To entry, so people who get to this thread via search can now find samples written both in JScript and VBScript there.
  • sbkeenan's avatar
    sbkeenan
    Frequent Contributor
    Hi



    Sorry for the delay in responding...



    I have tried the AutoHideInfo property, as suggested.  This does activate the hidden panel as you suggested, but, unlike a real user who is using the system, once the panel is finished with, I cannot close it.  When a user points at or clicks on the initial option to display the hidden panel, they can complete the options within it.  Then, when the resultant report is loaded, the panel is automatically hidden.  With the property value set to False, I cannot even close the panel manually (it usually closes automatically when a user clicks off it.)



    I tried to find further details on the AutoHideInfo property on the DevXpress Web site, but it doesn't seem to be documented, nor is it visible to TestComplete when using the Object Spy.  Does this mean that there are other properties that may be available for use that I am not yet aware of?

     

    I passed details of the property to our developers, who, again, were unable to find out anything about it - they use Visual Studio.



    Any further assistance would be much appreciated.



    Regards

    Stephen.
  • Hi Stephen,






    I tried to find further details on the AutoHideInfo property on the DevXpress Web site, but it doesn't seem to be documented, nor is it visible to TestComplete when using the Object Spy.





    Make sure you have the Advanced view (not Basic view) enabled in the Object Browser. Also, make sure you have the Show hidden members option enabled. This will make the property available in TestComplete. As for Visual Studio and the official controls documentation, it looks like the property in question is private and therefore is not documented.



    BTW, information on settings which affect the Object Browser can be found in the Settings That Affect the Object Browser Display help topic.






    This does activate the hidden panel as you suggested, but, unlike a real user who is using the system, once the panel is finished with, I cannot close it.





    That's probably because the panel becomes docked (not auto-hidden) when the approach I suggested is used. I've created another sample which simply clicks the needed button to make the panel visible - this should be much closer to usual user actions. You can find the sample here:


    Make an auto-hidden panel visible
     
  • sbkeenan's avatar
    sbkeenan
    Frequent Contributor
    Hi Allen



    The Show Hidden Members was just what I was after.  This has enabled me to perform the actions exactly as and end user would.



    Many thanks.



    Regards

    Stephen.