Results 1 to 9 of 9

Thread: API - Overlay show not always above HostWindow - 1.1.0.0

  1. #1
    Low Bitrate
    Join Date
    Sep 2006
    Location
    Sydney
    Posts
    101

    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.

  2. #2
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    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.

  3. #3
    Low Bitrate
    Join Date
    Sep 2006
    Location
    Sydney
    Posts
    101
    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?

  4. #4
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    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.

  5. #5
    Low Bitrate
    Join Date
    Sep 2006
    Location
    Sydney
    Posts
    101
    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 Attached Files

  6. #6
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    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.

  7. #7
    _
    Join Date
    Mar 2004
    Location
    Little Elm, Texas
    Posts
    13,500
    Please retest with the latest release and report back with your findings: Download StreetDeck Updates
    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!

  8. #8
    _
    Join Date
    Mar 2004
    Location
    Little Elm, Texas
    Posts
    13,500
    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!

  9. #9
    Low Bitrate
    Join Date
    Sep 2006
    Location
    Sydney
    Posts
    101
    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.

Similar Threads

  1. StreetDeck Functions
    By god_of_cpu in forum DigitalMods (Scripts / API)
    Replies: 22
    Last Post: 01-15-2008, 11:44 PM
  2. Ipod List doesn't show Cover Art - 1.1.0.0
    By TheSin in forum StreetDeck Bug Reports
    Replies: 4
    Last Post: 08-07-2007, 09:23 PM
  3. Flac playback does not show song duration - 1.0.9.8 - 1.1.0.0
    By apex52 in forum StreetDeck Bug Reports
    Replies: 10
    Last Post: 08-07-2007, 06:01 PM
  4. Indexing music in 1.0.9.8 Failed
    By hovalistic in forum StreetDeck
    Replies: 0
    Last Post: 07-07-2007, 12:19 PM
  5. NDRA Drag & NOPI Show - Bristol, TN 7/10-7/11
    By NOPIMAN in forum MP3Car Gatherings
    Replies: 0
    Last Post: 06-17-2004, 12:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •