Graphics

 View Only
  • 1.  This logo, not that

    Posted 10-12-2015 04:04
    I have some graphics that I've made to select the correct logo for each show by employing the visibility check box. I would like to save the newsroom from themselves and make it so that only one logo can be visible at a time. I know how to link visibility in Visual Logic but for some reason can't make it go the other way.


  • 2.  RE: This logo, not that

    Posted 10-13-2015 14:12
    I haven't ever seen a way to do this in Visual Logic, but I've done it in scripting quite a few times. We have a franchise that has multiple options (AM Edition, Noon Edition, Evening Edition, Weekend Edition, etc), and each has its own unique logo. I published the visibility of all but one (the basic "fnf" logo), then used this script:

    dim fnf as xpBaseObject

    dim fnfam as xpBaseObject

    dim fnfnoon as xpBaseObject

    dim fnfpm as xpBaseObject

    dim fnfwkd as xpBaseObject

    dim fnfspcl as xpBaseObject

    Self.GetObjectByName("FNF Logo", fnf)

    Self.GetObjectByName("FNFAM Logo", fnfam)

    Self.GetObjectByName("FNF Noon Logo", fnfnoon)

    Self.GetObjectByName("FNFPM Logo", fnfpm)

    Self.GetObjectByName("FNF Weekend Logo", fnfwkd)

    Self.GetObjectByName("FNF Special Logo", fnfspcl)

    if fnf.Visible=True then

    fnfam.Visible=False

    fnfnoon.Visible=False

    fnfpm.Visible=False

    fnfwkd.Visible=False

    fnfspcl.Visible=False

    elseif fnfam.Visible=True then

    fnf.Visible=False

    fnfnoon.Visible=False

    fnfpm.Visible=False

    fnfwkd.Visible=False

    fnfspcl.Visible=False

    elseif fnfnoon.Visible=True then

    fnf.Visible=False

    fnfam.Visible=False

    fnfpm.Visible=False

    fnfwkd.Visible=False

    fnfspcl.Visible=False

    elseif fnfpm.Visible=True then

    fnf.Visible=False

    fnfam.Visible=False

    fnfnoon.Visible=False

    fnfwkd.Visible=False

    fnfspcl.Visible=False

    elseif fnfwkd.Visible=True then

    fnf.Visible=False

    fnfam.Visible=False

    fnfnoon.Visible=False

    fnfpm.Visible=False

    fnfspcl.Visible=False

    elseif fnfspcl.Visible=True then

    fnf.Visible=False

    fnfam.Visible=False

    fnfnoon.Visible=False

    fnfpm.Visible=False

    fnfwknd.Visible=False

    end if


    It simply goes through every item to see if something is set to visible, then turns the visibility off on every other object. There's a lengthier section following it that displays a warning message if more than one is set visible, as well.

    #XPression