search for: expandcmd

Displaying 1 result from an estimated 1 matches for "expandcmd".

2005 Aug 05
3
Popup menu attached to a FXTreeItem
Hi, I''m using FXRuby 1.0 on Windows. I''d like to display a popup menu after a right click 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...