on 05-05-2014 6:55 AM
I wish to create a Dynamic Menu (Menu from Database) and wish to add clicked Event script run time for executing the same.
Hi,
I've done that some time ago for a popup menu.
The design menu only exists of a single item.
The only code it has is in the clicked event:
In a try catch:
parentwindow . dynamic trigger event ue_pop(this.text)
In short in the rbuttondown event of the window (or at ancestor level) :
for all items in options[]
m_pop[i] = create m_pop_item
m_pop[i]. item[1].text = options[i]
if i <> 1 then m_pop[1].tem[i] = m_pop[i].item[1]
m_pop[1].popmenu(xpos, ypos)
And in the ue_pop event you can check based on the string received (or you can also use an integer)
you take the appropriate action.
For a window menu you can also use a menu with menu items more than you will ever need and make what you don't need invisible.
Ben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.