Mp3car Home Page The mp3Car.com Forums The mp3Car.com Store The mp3Car.com Blog About mp3Car.com    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > StreetDeck

Notices

Reply
 
Share Thread Tools Display Modes
Old 12-18-2006, 03:53 PM   #1
FLAC is for flaccid
 
parksgm's Avatar
 
Join Date: Dec 2005
Location: Dallas, Texas
Posts: 1,117
Determining button highlight order

How do I determine which order buttons are selected in when using the arrow keys to move between buttons in SD? I want to be able to use the up and down arrow keys (not left and right) to move sequentially through the buttons on screen.

I modified the default skin by removing some of the buttons I don't use from CStartModule, and then putting the four buttons I do use in a vertical column down the left half of the screen, with a fifth button on the right side of the screen. I then edited the Z order so that the first button at the top of the screen is first, then second button on the screen is second, and so on, with the fifth button last in the Z order.

However, when I use the up and down arrow keys to move the highlight between buttons, the selection behavior changes depending on if I am using the down key, or the up key. For instance, if I start at the top of the column and press the down key, the highlight moves down the four buttons of the vertical column and then to the fifth button. But, I am am on the fourth button in the vertical column and press "up" to move to the button directly above the fourth button on screen, the highlight will move to the fifth button on the right of the screen. If I press the up key again, the highlight will move from the fifth button back to the third button.

Editing the Z-order doesn't seem to affect this behavior...so what do I do?
__________________

An amateur built the Ark. The Titanic was built by professionals.
parksgm is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 12-19-2006, 10:50 AM   #2
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,957
Quote: Originally Posted by parksgm View Post
How do I determine which order buttons are selected in when using the arrow keys to move between buttons in SD? I want to be able to use the up and down arrow keys (not left and right) to move sequentially through the buttons on screen.

I modified the default skin by removing some of the buttons I don't use from CStartModule, and then putting the four buttons I do use in a vertical column down the left half of the screen, with a fifth button on the right side of the screen. I then edited the Z order so that the first button at the top of the screen is first, then second button on the screen is second, and so on, with the fifth button last in the Z order.

However, when I use the up and down arrow keys to move the highlight between buttons, the selection behavior changes depending on if I am using the down key, or the up key. For instance, if I start at the top of the column and press the down key, the highlight moves down the four buttons of the vertical column and then to the fifth button. But, I am am on the fourth button in the vertical column and press "up" to move to the button directly above the fourth button on screen, the highlight will move to the fifth button on the right of the screen. If I press the up key again, the highlight will move from the fifth button back to the third button.

Editing the Z-order doesn't seem to affect this behavior...so what do I do?

The direction in which the highlight moves is determined by the closest button in one direction to the current button. If two buttons are at the same y position, it will move to the one with the closest X position to the current one. If the button is moving to the left or the right when there is a button directly above it. It means that the buttons to the left or the right are slightly lower then the button above it. This may be so even if the buttons are only 1 or two pixels lower and to the human eye look exactly even. To fix this make all the buttons in a row at the same exact y position and make sure all the buttons are the same height.
__________________
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 12-19-2006, 11:38 AM   #3
FLAC is for flaccid
 
parksgm's Avatar
 
Join Date: Dec 2005
Location: Dallas, Texas
Posts: 1,117
Quote: Originally Posted by god_of_cpu View Post
The direction in which the highlight moves is determined by the closest button in one direction to the current button. If two buttons are at the same y position, it will move to the one with the closest X position to the current one. If the button is moving to the left or the right when there is a button directly above it. It means that the buttons to the left or the right are slightly lower then the button above it. This may be so even if the buttons are only 1 or two pixels lower and to the human eye look exactly even. To fix this make all the buttons in a row at the same exact y position and make sure all the buttons are the same height.

Thanks for the quick reply! I changed the button location, and they now highlight as expected.
__________________

An amateur built the Ark. The Titanic was built by professionals.

Last edited by parksgm; 12-19-2006 at 07:06 PM.
parksgm is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

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 On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Relocating computer power button King_Xerxes General Hardware Discussion 8 02-21-2007 10:15 PM
iGmod Beta 2 release PURDooM Other Cool Stuff 625 05-12-2006 03:52 PM
Power Button not working? NoTicketsPlease Newbie 5 02-28-2006 11:43 PM
PC power button problem BMp3W Power Supplies 4 10-12-2002 03:36 AM
internet button on my pc babas151 General Hardware Discussion 10 05-31-2002 03:41 PM


All times are GMT -5. The time now is 12:18 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