Author Topic: Windows Classic 2.1 uses less accurate countdown timer  (Read 831 times)

quanta

  • Posts: 16
When using Windows Classic 2.1 skin, click on the timer at the title bar shows the countdown timer has only 1 second accuracy instead of 0.1 second accuracy in Windows Classic 2 skin. The bug does not affect countup timer.

Ian @ un4seen

  • Administrator
  • Posts: 20396
The 10ths are dropped whenever the skin's time display area isn't wide enough to fit them. In this case, the '-' character when counting down means there isn't enough space for the 10ths. Unfortunately, the sources for the Windows Classic 2.1 skin weren't released, so you can't expand its time display area.

quanta

  • Posts: 16
The 10ths are dropped whenever the skin's time display area isn't wide enough to fit them. In this case, the '-' character when counting down means there isn't enough space for the 10ths. Unfortunately, the sources for the Windows Classic 2.1 skin weren't released, so you can't expand its time display area.

Maybe it's time for a 'skinless' option that uses native operating system's resources to build a default user interface? Even for skin-based options, may be it's time for XMPlay to incorporate 'flexible skin' options so that it does not require skin builder to place UI objects at explicitly-stated location in pixel in order to resize elements and maintaining the overall looks of the skin. Let's use the time display area field example. Instead of explicitly stating the width of the text field in pixels, the flexible skin approach is to state the maximum length of timer in 7 em spaces. The skin compositor then takes the 7 em spaces and converts into pixel width in runtime based on the font's properties (eg: size, style, family) being applied to the particular user element. The above example stated the timer field has maximum length of 7 em spaces, so if the element actually uses less space, then the the left over bounding box space can be made transparent so that other the other title bar text can be displayed in the temporarily freed space.

The flexible skin option also allows user interface objects to be aligned relative to the locations of other user interface objects, including the skin's bounding boxes, so it facilitate the possibility of resizeable skins without recompiling. For example, if a toolbar has left, right, and centre-aligned buttons, resizing the skin's width will maintain their horizontal positions relative to the skins, or even wrap extra buttons to successive rows if the width is too narrow.

Ian @ un4seen

  • Administrator
  • Posts: 20396
Amit has kindly provided an updated Windows Classic 2.1 skin with a wider time display area. You can get it from the support site.