Production Switchers

 View Only
  • 1.  Widget Clock Control (Display Format) Question

    Posted 12-11-2012 21:16
    Hi folks, I was wondering what the correct syntax was to change the clock display format while a clock is counting down. For example, when the clock goes under 1:00, we want to display :59.23. I figured out how to set the format but not how to get it to change based on a time value. I've tried various methods but no luck so far...

    dim timer as xpClockTimerWidget

    engine.GetWidgetByName("Clock", timer)

    if timer < 60 then [so what goes here?]

    timer.format = ":SS.ZZ"

    else

    timer.format = "N:SS"

    end if


  • 2.  RE: Widget Clock Control (Display Format) Question

    Posted 12-11-2012 22:41
    Tadam !

    dim timer as xpClockTimerWidget

    Engine.GetWidgetByName("Clock", timer)

    if timer.TimerValue < 60000 then

    timer.format = ":SS.ZZ"

    else

    timer.format = "N:SS"

    end if


    #CrossOver


  • 3.  RE: Widget Clock Control (Display Format) Question

    Posted 12-12-2012 22:30
    Works like a charm. Thanks Vincent!

    #CrossOver


  • 4.  RE: Widget Clock Control (Display Format) Question

    Posted 12-13-2012 09:28
    You're welcome.

    #CrossOver