Announcement

Collapse
No announcement yet.

API - Overlay show not always above HostWindow - 1.1.0.0

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • API - Overlay show not always above HostWindow - 1.1.0.0

    What version of StreetDeck is this bug report for?
    v1.1.0.0


    Please give a basic description of the issue here.
    * Use API example 3 as a base
    * Add an overlay with an item
    * On module_OnExit Hide OR Visable = false on the overlay
    * On module_OnEnter Show OR Visable = true on the overlay

    OK
    Now sometimes when coming back to module the overlay appears. After a couple times of exiting and coming back then the overlay does not appear.

    If you hit pause or cause any other overlays to come on the screen then it will pop up.

    Attempted:
    * Show and Visible. I donít understand why you have both of these and what the difference is.
    * m_app.ForceGDIRender();
    * m_app.ResetRenderState();
    * m_overlay.Left += 1;
    * m_overlay.ZOrderMoveToTop();

    I have attempted this on 3 different computers and they all seem to suffer from the same problem.
    www.ssw.com.au

  • #2
    ForceGDIRender is only used when running in GDI mode and you will probably never need to use.

    ResetRenderState is only if you render directly to the Direct3D display device and needs to be called if you change any of the render states.

    The embedded window will only be updated when its visible state is changed, not when you move it.

    ZOrderMoveToTop changes the order in which overlays are rendered over each other, not whether it is rendered.

    Does the overlay always appear if you change the visible state in a button press?

    You might also try setting the visible state in the OnEndTransition event of the module you are entering.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

    Comment


    • #3
      I didn’t think that those other things would work. I just wanted to show some other things that I have attempted.

      The event module_OnEnter event is getting called.
      m_overlayBack.Show(false); is getting called.
      However the overlay is not apearing.

      I have put the m_overlayBack.Show(false); in a timer which also made no diffrence.

      I have tried the OnEndTransition event however it did not fix anything

      I have attempted this on XP and vista with the same results.

      What occurs when the mute or volume overlay appears? This seems to show the overlay again. Can I call this manually?
      www.ssw.com.au

      Comment


      • #4
        The host window cutout works by checking on every render if a windows visibility state has changed, if it has it creates a new window region that excludes the areas of visible overlays. For some reason, it doesn't appear that your overlay is triggering a change. When the mute or volume overlay appears, its visibility is changed and so will trigger a new window region creation which should include your overlay if it is visible at the time.

        Can you send me your code? I am unable to duplicate this problem.
        StreetDeck.com Developer (I am Chuck)
        Get StreetDeck at http://www.streetdeck.com
        The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

        Comment


        • #5
          Here is the sample3 application with code to replicate the issue.

          process to replicate
          * run addin
          * click back button
          * open some other module
          * run addin
          * click back button
          * run addin

          Should be gone now..

          If not then
          * run addin
          * click back button
          and repete untill it is missing.
          Attached Files
          www.ssw.com.au

          Comment


          • #6
            This should be fixed in version 1.1.0.5
            StreetDeck.com Developer (I am Chuck)
            Get StreetDeck at http://www.streetdeck.com
            The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

            Comment


            • #7
              Please retest with the latest release and report back with your findings: http://www.mp3car.com/vbulletin/1151243-post25.html
              Jan Bennett
              FS: VW MKIV Bezel for 8" Lilliput - 95% Finished

              Please post on the forums! Chances are, someone else has or will have the same questions as you!

              Comment


              • #8
                Please retest with the latest release (1.1.1.0) and report back with your findings.
                Jan Bennett
                FS: VW MKIV Bezel for 8" Lilliput - 95% Finished

                Please post on the forums! Chances are, someone else has or will have the same questions as you!

                Comment


                • #9
                  Im on holiday so i cant really test this one but the problem seems to be worse.

                  The overlay still does not apear untill another item is pressed (volume, now playing section, etc)

                  AND the overlay seems to come back to the top left o the screen instead of its reall position. The real position is just a black area.

                  When I get time ill play more and send a screen shot.
                  www.ssw.com.au

                  Comment

                  Working...
                  X