hide the Toolbar - InfoPath Dev
in

InfoPath Dev

hide the Toolbar

Last post 01-10-2006 11:08 PM by Coita Thierry. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 01-10-2006 02:54 AM

    hide the Toolbar

    Hi,

    Happy new year to all! I'm back from Berlin that was amazing! people are so nice in this country! And the women,... I prefer to not speak about her because otherwise I take the next flight ;)

    I'm asking me if it's possible on a reapeating section to make appear and disapear a custom toolbar depend on an attribut?

    Ex this xml:

    <toto>
    <Henry id="1"/>
    <Henry id="2"/>
    <Henry id="1"/>
    <Henry id="3"/>
    </toto>


    I wan't that the custom toolbar appear when henry is selected and only if id =1!

    Is it possible?

    Thanks

    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 01-10-2006 04:02 AM In reply to

    Hi Virgul,

    hope you had a good time in germany. I am actually from there :)

    Don't know exactly if that is what you are looking for but you can check this thread: http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1458
    May be there are some usefull information for you.

    Listen to Motörhead cos they play Rock'n Roll :)
    Listen to Motörhead cos they play Rock'n Roll :)
  • 01-10-2006 04:51 AM In reply to

    Hi,

    You have a lot of chance to be in Germany!

    Thanks for your answer I will see this page. I never see it before. There are other page on microsoft website that speak about toolbar but not with code!

    Thanks a lot

    ++

    Thierry

    You are right Motörhead is a good band ;)

    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 01-10-2006 07:47 AM In reply to

    Ok I have read this documentation but that send me to the other document that I have already read! Because in your link the custom toolbar is made with the infopath control and not custom button with code behind!

    So my question when you have create your custom toolbar declare it in the manifest.xsf is there a way to hide it depend on an attribut of a reapeating table?

    Thanks

    ++

    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 01-10-2006 09:49 AM In reply to

    Maybe try this:

    var objCommandBars = Application.ActiveWindow.CommandBars;
    objCommandBars("_Name_attribute_of_your_xsf:toolbar_element").Enabled = false;


    One question I have for you, Virgul, is regarding the following sentence in the Display a Custom Toolbar tutorial: "It is possible, however, to add a custom toolbar that contains custom commands to your InfoPath form." Where did you find the information concerning this issue?

    Reference:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_ta/html/OfficeInfoPathCustomizingInfoPathMenusandToolbars.asp
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsdkDisplayCustomToolbar_HV01083303.asp


    ---------------
    Matt Faus
    InfoPath Dev Texas
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 01-10-2006 11:08 PM In reply to

    Thanks for the idea Matt!

    Ok I will try this! that can possibly work!

    Matt-> I don't understand your question can you repeat please? :oops:

    Thierry

    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.