The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > StreetDeck > DigitalMods (Scripts / API)

Reply
 
LinkBack Thread Tools Display Modes
Old 07-27-2007, 12:14 AM   #1
Low Bitrate
 
Join Date: Sep 2006
Location: Sydney
Posts: 101
How to set the zindex of the back and home buttons?

I’m new to SD scripting. I’m just trying to make a simple app.

I have a module that creates an Host window.
hWndHost = (int)module.CreateHostWindow();

That is fine however how do I set the zindex of the back and home buttons to be above this window?
Deadeye is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 07-27-2007, 01:20 PM   #2
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,957
You can', you have to cut regions out of the host window that you don't want to cover up StreetDeck.
__________________
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.
god_of_cpu is offline   Reply With Quote
Old 07-29-2007, 03:13 AM   #3
Low Bitrate
 
Join Date: Sep 2006
Location: Sydney
Posts: 101
Is there any sample code for this?

Is there more than a couple pages on a wiki? Is there an API document?
Deadeye is offline   Reply With Quote
Old 08-01-2007, 07:56 AM   #4
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,957
The call is the windows API call ::SetWindowsRgn. It may be easier for you to just make an overlay that is restricted to your module though and put duplicate Home and back buttons on it. Overlays will automatically be cut out of the embedded window by StreetDeck.
__________________
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.
god_of_cpu is offline   Reply With Quote
Old 08-03-2007, 03:30 AM   #5
Low Bitrate
 
Join Date: Sep 2006
Location: Sydney
Posts: 101
No overlays will go over the module after
module.CreateHostWindow();

has been called.

ideas?
__________________
www.ssw.com.au
Deadeye is offline   Reply With Quote
Old 08-06-2007, 07:26 PM   #6
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,957
Did you follow the instructions in the tutorial?
http://www.mp3car.com/wiki/index.php...od_%28Addin%29

If you play a music item, then goto the example digitalmod in the tutorial, does the playing media item show up in the lower left cut out of the embedded window?
__________________
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.
god_of_cpu is offline   Reply With Quote
Old 08-06-2007, 08:23 PM   #7
Low Bitrate
 
Join Date: Sep 2006
Location: Sydney
Posts: 101
Yes I have read that and I did use the example as a base.

My problem is that after I call
module = app.CreateModule("StreetDeckDestinatorAddin");
I have a white window with nothing except the media arrow and track name on the bottom of the screen.

The overlay I created with
StreetDeck.Panel btnShowOverlay = (StreetDeck.Panel)module.CreatePanel(StreetDeck.en umCreatePanelType.eCPTButton, "BUTTONOVERLAY.BACK",
"DestinatorBack", //This is the function name that will be given back to us in any OnExec call and for all intents and purposes is the name of this panel
app.GetSystemMetric(StreetDeck.enumSystemMetrics.e SMGenericModuleClientX),
app.GetSystemMetric(StreetDeck.enumSystemMetrics.e SMGenericModuleClientY),
96, 96);
Does NOT go over the white background.

I would just like my overlay (the back button) to stay on top like the media section at the bottom of the page.
__________________
www.ssw.com.au
Deadeye is offline   Reply With Quote
Old 08-06-2007, 08:25 PM   #8
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,957
Do other system overlays show up though like the media tray overlay?
__________________
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.
god_of_cpu is offline   Reply With Quote
Old 08-06-2007, 08:36 PM   #9
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,957
Quote: Originally Posted by Deadeye View Post
Yes I have read that and I did use the example as a base.

My problem is that after I call
module = app.CreateModule("StreetDeckDestinatorAddin");
I have a white window with nothing except the media arrow and track name on the bottom of the screen.

The overlay I created with
StreetDeck.Panel btnShowOverlay = (StreetDeck.Panel)module.CreatePanel(StreetDeck.en umCreatePanelType.eCPTButton, "BUTTONOVERLAY.BACK",
"DestinatorBack", //This is the function name that will be given back to us in any OnExec call and for all intents and purposes is the name of this panel
app.GetSystemMetric(StreetDeck.enumSystemMetrics.e SMGenericModuleClientX),
app.GetSystemMetric(StreetDeck.enumSystemMetrics.e SMGenericModuleClientY),
96, 96);
Does NOT go over the white background.

I would just like my overlay (the back button) to stay on top like the media section at the bottom of the page.

You are also not creating an overlay there. You are just creating a button. An overlay is on the same level as a module... it contains other panels (controls) in it. To have a button show above your embedded window, you would have to create an overlay, then create a button on it.

This would look something like this:
Code:
StreetDeck.ScriptOverlay overlayRecognition; //Create an overlay that will contain the other controls. Overlays are global and will be shown //above every other module overlayRecognition = app.CreateOverlay("VoiceShowRecognitionOverlay"); StreetDeck.Panel btnShowOverlay = (StreetDeck.Panel)overlayRecognition.CreatePanel(StreetDeck.enumCreatePanelType.eCPTButton, "BUTTONOVERLAY.BACK", "DestinatorBack", //This is the function name that will be given back to us in any OnExec call and for all intents and purposes is the name of this panel app.GetSystemMetric(StreetDeck.enumSystemMetrics.eSMGenericModuleClientX), app.GetSystemMetric(StreetDeck.enumSystemMetrics.eSMGenericModuleClientY), 96, 96);

__________________
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.
god_of_cpu is offline   Reply With Quote
Old 08-06-2007, 10:59 PM   #10
Low Bitrate
 
Join Date: Sep 2006
Location: Sydney
Posts: 101
YAY

thanks thats better.

when do you expect the API doco will be released? evan a beta copy?
__________________
www.ssw.com.au
Deadeye is offline   Reply With Quote
Old 08-06-2007, 11:03 PM   #11
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,957
The Streetdeck IDL file should contain descriptions of every method available. More through API documentation won't be available until version 2.0.
__________________
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.
god_of_cpu is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Indexing music in 1.0.9.8 Failed hovalistic StreetDeck 0 07-07-2007 11:19 AM
Left arrow key has 'back' function associated with it S4Per StreetDeck Bug Reports 9 03-17-2007 01:06 AM
fabricating dash xenarc 700tsv buttons help michaelrj9 Fabrication 4 03-16-2005 04:34 PM
I'm Back, It feels good to be home Kinnish General MP3Car Discussion 3 06-26-2002 06:00 PM


All times are GMT -5. The time now is 02:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics