quote:
Originally posted by djdannyp
you can't create brand new drop-down menus
If you want to create a button which displays a menu then it is possible. Just one moment while I experiment...
EDIT:
Definition
code:
<MenuButton Active=MouseAndKeyboard|NoSyncFocus Layout=FillLayout()>
<ButtonIcon content="My Custom Menu"/>
<PopupMenu2>
<MenuItem2 Class="ToolbarMenuItem" CmdID=12345 text="Item1"/>
<MenuItem2/>
<MenuItem2 Class="ToolbarMenuItem" CmdID=12346 text="Item2"/>
</PopupMenu2>
</MenuButton>
Style
code:
MenuButton
{
Background:rcclr(20017);
ContentAlign:MiddleCenter;
Tooltip:True;
}
MenuButton[IsDefault]
{
Background:rcclr(20017);
}
MenuButton[MouseWithin]
{
Background:rcbkd(20201);
}
MenuButton[Pressed]
{
Background:rcbkd(20202);
}
MenuButton[Enabled=False]
{
Background:rcbkd(2018);
}
MenuButton[KeyFocused]
{
ContentAlign:MiddleCenter|FocusRect;
}
MenuItem2[Class="ToolbarMenuItem"]
{
IconChecked:rcimg(20051);
IconCheckedHighlight:rcimg(20052);
}
Taken from 1001 and modified for simplicity.
You will need
working command IDs (CmdId).