SmokingCookie
Senior Member
Posts: 815 Reputation: 15
30 / /
Joined: Jul 2007
|
O.P. RE: [HELP] MenuButtonControl
XML code:
code: <Control xsi:type="MenuButtonControl" Id="MnuBSave">
<Position Left="130" Top="295" Width="50" />
<Caption>Save</Caption>
<Menu>
<MenuEntry Id="MnuSaveAll">Save all notifications</MenuEntry>
<MenuEntry Id="MnuSaveSelected">Save selected notifications</MenuEntry>
</Menu>
</Control>
JS file:
code: function OnWndNotifsEvent_CtrlClicked(PlusWnd,ControlId) {
if(ControlId == "MnuSaveAll") {
Debug.Trace("> Saving all notifications");
// lots of code
}
if(ControlId == "MnuSaveSelected") {
Debug.Trace("> Saving selected notifications");
// lots of code
}
}
This post was edited on 05-18-2008 at 01:45 PM by SmokingCookie.
|
|