Welcome Guest ( Log In | Register )

> foobar2000 Development Forum Rules

This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).

Reply to this topicStart new topic
Trying to write search component
post May 8 2013, 07:37
Post #1

Group: Members
Posts: 1
Joined: 5-May 13
Member No.: 107972

Trying to write search component

I'm trying to write my first foobar component but am having trouble figuring out the SDK files. I want to create a search panel that can be placed on the main layout. It would be similar to the default Media Library Search panel and have these changes:

1) Pressing the down key when inside the search box would move the focus to the first search result.

2) Pressing the up key when focused on the first search result would return the focus to the search box.

3) Dividers, blank lines, or text background colors would be used to organize the results list based on artist and album.

What strategies should I use for creating this component? Which SDK files would be useful?

Also, how do I create a keyboard shortcut to place the focus on the search box in my component?
Go to the top of the page
+Quote Post
post May 8 2013, 20:59
Post #2

Group: FB2K Moderator (Donating)
Posts: 4489
Joined: 24-February 03
Member No.: 5153

Have you already checked the foo_sample component in the SDK? It demonstrates how to write a UI element (i.e. integrate a panel in the main window of the Default UI) and how to add a command to the main menu (among other things).

http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 28th December 2014 - 21:08