Displaying 4 results from an estimated 4 matches for "fxmenupan".
Did you mean:
fxmenupane
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
#--------------...
2007 May 19
3
table with no row headers
Is this the right way to turn off row headers?
table.rowHeaderMode = LAYOUT_FIX_WIDTH
table.rowHeaderWidth = 0
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
2008 Jun 12
0
[Foxgui-users] Segmentation fault on exit
...m is, please? AFAICT, my exit button passes
the
> message FXApp::ID_QUIT to the application; what happens after that??
The most likely cause is that the menu pane is not being deleted
explicitly, and then continues to exist after the main window that
owns it has already been deleted.
When an FXMenuPane is deleted, all the menu commands in it will try to
remove their accelerators from the main window''s accelerator table.
This will not work, since the main window is already gone.
Solution: in your main window''s destructor, delete all menu panes owned
by that main window. This w...
2008 Apr 14
3
Copy-paste between FXTable and FXTextfield
...ude Fox
class MyWindow < FXMainWindow
def initialize(app)
super(app, "Window", nil, nil, DECOR_ALL, 0, 0, 600, 350)
# Menu bar stretched along the top of the main window
menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
# File menu
filemenu = FXMenuPane.new(self)
FXMenuTitle.new(menubar, "&File", nil, filemenu)
FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit the application",
nil, app, FXApp::ID_QUIT)
# Field
field = FXTextField.new(self, 15)
# Table
f = FXHorizontalFrame.new(s...