[Fxruby-users] FXMenuCommands as options
Status: Inactive
Brought to you by:
lyle
From: Daniel S. <da...@pr...> - 2004-03-19 04:03:25
|
I've been looking at the code for the sample program table.rbw, and the following section is confusing me: =20 # Options Menu =20 tablemenu =3D FXMenuPane.new(self) =20 FXMenuCommand.new(tablemenu, "Horizontal grid", nil, =20 @table, FXTable::ID_HORZ_GRID) =20 FXMenuCommand.new(tablemenu, "Vertical grid", nil, =20 @table, FXTable::ID_VERT_GRID) =20 FXMenuTitle.new(menubar, "&Options", nil, tablemenu) This creates the Options menu pane, and creates two buttons in it that send the "ID_HORZ_GRID" and "ID_VERT_GRID" events to @table when they are clicked.=20 When the application is run, these two menu items have check-boxes next to them. What is making these checkboxes appear? There's no events with the menu items as targets. There's no calls to the "check" method. How does this hang together? #########################################################################= ############ This email has been scanned by MailMarshal, an email content filter. #########################################################################= ############ |