Picture in button - InfoPath Dev
in

InfoPath Dev

Picture in button

Last post 11-01-2005 05:16 AM by Coita Thierry. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-31-2005 02:12 AM

    Picture in button

    Hi,

    I have read the article on microsoft supporthttp://support.microsoft.com/?scid=kb;en-us;832511) and in the book programming solution with infopath! but one things is very strange if you add a button like it says when you click one the button the event is fire but you there are no action on the button like it is when you have text in it!

    So my questions is:

    Is there a way to change the picture on the button clik?

    I have try with the attribut onclick (normally that work for html): onclick="this.style.backgroundImage='url(secondpicture.gif)'" but that don't work!

    Is there a way to make the same effect on the button like wenn you have text inner?

    I have try to remove BORDER: none; but if you do that your picture don't appear anymore.


    Have you a work around for this case?

    Thanks for your help!

    ++

    Thierry



    Every moment hesitated is a moment gone for life!!! Think about it
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 10-31-2005 11:57 PM In reply to

    Hi Thierry,
    Use two sections both of which contain buttons that look different; conditionally show one or the other based on a secondary data source setting that changes when you click on them.... happy days!

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
  • 11-01-2005 05:16 AM In reply to

    Hi Patrick,

    Thanks for this! That works good!

    It's what I call a work around! ;-)

    ++

    Thierry


    Every moment hesitated is a moment gone for life!!! Think about it
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.