[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum XWidget & XLaunchpad , Desktop customization 2014-10-18T06:05:21-08:00 https://bbs.xwidget.com/feed.php?f=8&t=3425 2014-10-18T03:34:41-08:00 2014-10-18T03:34:41-08:00 https://bbs.xwidget.com/viewtopic.php?t=3425&p=10290#p10290 <![CDATA[Re: HELP: creating modifying menu items within javascript]]>
Menu items cannot be created in code in Xwidget engine.

Statistics: Posted by yereverluvinuncleber — October 18th, 2014, 3:34 am


]]>
2014-10-17T15:55:21-08:00 2014-10-17T15:55:21-08:00 https://bbs.xwidget.com/viewtopic.php?t=3425&p=10269#p10269 <![CDATA[Re: HELP: creating modifying menu items within javascript]]> but as another way:

1. create some more menuitems in gui,
2. use [OnPopupMenu] Event and add a function to it,
3. write the function to make them [.Visible],
4. you can also change [.Caption], [.Core], [.OnClick], [.Enabled], [.Checked], [.Tag], [.TagString] (this one is not available in gui :D) ,... through ScriptCode

Statistics: Posted by hamid — October 17th, 2014, 3:55 pm


]]>
2014-10-12T06:55:19-08:00 2014-10-12T06:55:19-08:00 https://bbs.xwidget.com/viewtopic.php?t=3425&p=10197#p10197 <![CDATA[Re: HELP: creating modifying menu items within javascript]]>
item = new MenuItem();

I am surprised this sort of thing can't be done, can it? It should be possible within the logic so more dynamic menus can be created on-the-fly.

<menu>
<item name="menuitem7" caption="Contact Support" onClick="menuitem7OnClick"/>
</menu>

Statistics: Posted by yereverluvinuncleber — October 12th, 2014, 6:55 am


]]>
2013-08-08T04:29:38-08:00 2013-08-08T04:29:38-08:00 https://bbs.xwidget.com/viewtopic.php?t=3425&p=5802#p5802 <![CDATA[Re: creating modifying menu items within javascript]]> Statistics: Posted by yereverluvinuncleber — August 8th, 2013, 4:29 am


]]>
2013-08-02T16:15:11-08:00 2013-08-02T16:15:11-08:00 https://bbs.xwidget.com/viewtopic.php?t=3425&p=5777#p5777 <![CDATA[Re: creating modifying menu items within javascript]]> Statistics: Posted by yereverluvinuncleber — August 2nd, 2013, 4:15 pm


]]>
2013-08-01T18:53:13-08:00 2013-08-01T18:53:13-08:00 https://bbs.xwidget.com/viewtopic.php?t=3425&p=5771#p5771 <![CDATA[Re: creating modifying menu items within javascript]]> Statistics: Posted by qiancang — August 1st, 2013, 6:53 pm


]]>
2014-10-18T06:05:21-08:00 2013-07-29T09:17:05-08:00 https://bbs.xwidget.com/viewtopic.php?t=3425&p=5723#p5723 <![CDATA[HELP: creating modifying menu items within javascript CLOSED]]> If so, please give some pointers, I am trying to replicate the following code:

for example:
mainWindow.onContextMenu = function() {
var items = [];
items[1] = new MenuItem();
items[1].title = "Online Help";
items[1].onSelect = function() {
widgethelp();
};
items[2] = new MenuItem();
items[2].title = "blah blah blah";
items[2].onSelect = function() {
donate();
};
items[3] = new MenuItem();
items[3].title = "blah blah blah";
items[3].onSelect = function() {
amazon();
};
items[4] = new MenuItem();
items[4].title = "blah blah blah";
items[4].onSelect = function() {
rocketdock();
};
items[5] = new MenuItem();
items[5].title = "";
items[5].onSelect = function() {
nullfunction();
};
items[6] = new MenuItem();
items[6].title = "See More blah blah blah;
items[6].onSelect = function() {
otherwidgets();
};
items[7] = new MenuItem();
items[7].title = "Download blah blah blah";
items[7].onSelect = function() {
update();
};
items[11] = new MenuItem();
items[11].title = "Contact blah blah blah";
items[11].onSelect = function() {
contact();
};
mainWindow.contextMenuItems = items;

I would also like to be able to modify the menus dynamically.

Statistics: Posted by yereverluvinuncleber — July 29th, 2013, 9:17 am


]]>