Deo wrote:
Quote:
CloneMenuItems(pm,menu,newmenu)
{
for i, item in menu.GetItems()
newmenu.add({"name" : item.name, "bold" : item.bold, "issep" : item.issep, "icon" : item.icon , "break": item.break, "tcolor": item.tcolor, "bgcolor": item.bgcolor, "noPrefix" : item.noPrefix, "disabled" : item.disabled})
}
this is the good solution, because i have disabled possibility to add same menu as submenu to the several items since it caused some bad problems. I think i'll better make similar method to clone menus instead...
This is sufficient for my needs. I though of making it recurse through submenus - but I do not need it. I suppose it will not be too difficult to modify.
Quote:
Quote:
Thanks - but I think my message was unclear. The problem is not what action is instituted by your program - it is more the message that is sent to PUM_Out. And the default is indeed "run".
now i understand, but if i got two messages, i should transfer them all both to the event handling function without filtering, right? That depends on how you will make handling of them. For example you can call "tooltip" whenever you getting "onrun" event to remove shown tooltip (since "onselect" message received first ), or you can make tooltips showing through timers and make few checks there, for example GetRect() method will return nothing if specified item is not shown on the screen at the moment
Though i can add extra parameter to return with "onselect" message, which can tell you whether item selected with mouse or not, is it highlited, is it disabled. But as i tried it doesn't filter events when you choose item with cursor or by pressing button.
Thanks will try. The "call tooltip" will still mean that the first tooltip flashes (at the moment I call tooltip right after show() returns). A 100 ms delay will be fine (maybe even better since fast scrolling and immediate tooltips will cause a lot of "flashing")
BTW Just saw
http://www.autohotkey.com/forum/viewtopic.php?t=79998 - WOW![/url]