Help - Search - Members - Calendar
Full Version: right align in context menu
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
kyck-ling
Hi, I'm writing a small plugin that adds commands to the playlist context menu.

How do I make things right aligned in this menu (I'm displaying the shortcut commands for my plugin)
foosion
foobar2000 will automatically display the keyboard shortcuts defined by the user in the playlist context menu. Your menu_item implementation does not need to do anything in that direction.

The general way to get right-aligned text in a menu entry on Win32 is to include a tab character in the name string, like "left\tright". Again, foobar2000 will add the keyboard shortcut description itself (including a tab character), so don't add tab characters in your menu_item.
kyck-ling
QUOTE(foosion @ Apr 18 2005, 06:35 AM)
foobar2000 will automatically display the keyboard shortcuts defined by the user in the playlist context menu. Your menu_item implementation does not need to do anything in that direction.

The general way to get right-aligned text in a menu entry on Win32 is to include a tab character in the name string, like "left\tright". Again, foobar2000 will add the keyboard shortcut description itself (including a tab character), so don't add tab characters in your menu_item.
*



Ok, I had added my keyboard shortcut from "context/playlist" instead of "context". Works now, thanks for the quick reply.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.