Bug 12124 - slider styles cannot be described within a window style
: slider styles cannot be described within a window style
Status: RESOLVED INVALID
Product: SqueezePlay
Classification: Unclassified
Component: UI
: unspecified
: PC Other
: P1 normal (vote)
: 7.5.0
Assigned To: Wadzinski Tom
:
Depends on:
Blocks: 15060
  Show dependency treegraph
 
Reported: 2009-05-21 09:39 UTC by Ben Klaas
Modified: 2009-11-10 07:52 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Klaas 2009-05-21 09:39:19 UTC
I'd like to embed 100% of the styles for the NP window within the s.nowplaying window style 'nowplaying'. The two sliders on the NP window npprogressB and npvolumeB cannot be described within the window style

this does not work:

s.nowplaying = {
                npprogressB = {
                        w          = 193,
                        h          = 25,
                        padding    = { 0, 0, 0, 18 },
                        position   = LAYOUT_SOUTH,
                        horizontal = 1,
                        bgImg      = _songProgressBackground,
                        img        = _songProgressBar,
                },
                npvolumeB = {
                        w          = volumeBarWidth,
                        border     = { 5, 3, 5, 0 },
                        position   = LAYOUT_SOUTH,
                        horizontal = 1,
                        bgImg      = _volumeSliderBackground,
                        img        = _volumeSliderBar,
                },
}

this does work:
s.npprogressB = {
                w = 193,
                h = 25,
                padding     = { 0, 0, 0, 18 },
                position = LAYOUT_SOUTH,
                horizontal = 1,
                bgImg = _songProgressBackground,
                img = _songProgressBar,
}

s.npvolumeB = {
                w = volumeBarWidth,
                border = { 5, 3, 5, 0 },
                position = LAYOUT_SOUTH,
                horizontal = 1,
                bgImg = _volumeSliderBackground,
                img = _volumeSliderBar,
}
Comment 1 Richard Titmuss 2009-08-17 10:09:12 UTC
Marking P2 for now.
Comment 2 Ben Klaas 2009-08-26 07:51:49 UTC
this is an administrative shuffle on priority fields to help make better judgment on the top end of the priority list. P4->P5, P3->P4, and P2->P3.
Comment 3 Richard Titmuss 2009-09-29 04:18:04 UTC
Ben, is this useful for 7.5, or later?
Comment 4 Ben Klaas 2009-09-29 07:18:05 UTC
I don't think it should be necessary to define a slider style globally, but it's probably not going to hold anything up for 7.5.0
Comment 5 Ben Klaas 2009-11-10 07:13:59 UTC
with the addition of new NP views this bug is a 7.5 P1
Comment 6 Ben Klaas 2009-11-10 07:52:04 UTC
sorry, this was user error on my part. you can define sliders within a window style, but if the slider is a component of a group widget, you need to make sure that the slider style is inside the group block.

For example, npprogressB needs to be within the npprogress group:
        s.nowplaying = {
... 
                npprogress = {
                        x = 0,
                        y = 200,
                        ...
                        npprogressB = {
                                w = 293,
                                h = 25,
                                padding     = { 0, 0, 0, 18 },
                                position = LAYOUT_SOUTH,
                                horizontal = 1,
                                bgImg = _songProgressBackground,
                                img = _songProgressBar,
                        }, 
                
                },
        }