Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: right align in context menu (Read 3189 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

right align in context menu

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)
M-Audio Audiophile 24/96
Nad C350
B&W DM602S2

right align in context menu

Reply #1
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.

right align in context menu

Reply #2
Quote
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.
[a href="index.php?act=findpost&pid=291602"][{POST_SNAPBACK}][/a]


Ok, I had added my keyboard shortcut from "context/playlist" instead of "context". Works now, thanks for the quick reply.
M-Audio Audiophile 24/96
Nad C350
B&W DM602S2