Displaying 1 result from an estimated 1 matches for "sel_rightbuttonrelease".
2005 Aug 05
3
Popup menu attached to a FXTreeItem
...ick on a tree
item, I cannot make it work :
#--------------------
root = FXTreeList.new(parent, 1, self, 0)
pop = FXMenuPane.new(parent)
expandCmd = FXMenuCommand.new(pop, "Expand", nil, app)
expandCmd.connect(SEL_COMMAND)
{ root.currentItem.expanded=(true) }
root.connect(SEL_RIGHTBUTTONRELEASE) do |sender, selector, data|
pop.popup(root, data.rootclick_x, data.rootclick_y)
end
#---------------------
The same kind of code works with a FXTabItem instead of
FXTreeItem.
Would FXRuby 1.2 change something ?
Thanks
Thomas
Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ;
3...