[Fxruby-users] RE: FXMenuCommands as options
Status: Inactive
Brought to you by:
lyle
From: Daniel S. <da...@pr...> - 2004-03-19 04:09:47
|
Never mind, my question is answered here: http://fox-toolkit.org/datatarget.html Missing some of that fundamental knowledge stuff. > -----Original Message----- > From: Daniel Sheppard=20 > Sent: Friday, 19 March 2004 3:03 PM > To: fxr...@li... > Subject: FXMenuCommands as options >=20 >=20 > I've been looking at the code for the sample program=20 > table.rbw, and the following section is confusing me: >=20 > # Options Menu > tablemenu =3D FXMenuPane.new(self) > FXMenuCommand.new(tablemenu, "Horizontal grid", nil, > @table, FXTable::ID_HORZ_GRID) > FXMenuCommand.new(tablemenu, "Vertical grid", nil, > @table, FXTable::ID_VERT_GRID) > FXMenuTitle.new(menubar, "&Options", nil, tablemenu) >=20 > This creates the Options menu pane, and creates two buttons=20 > in it that send the "ID_HORZ_GRID" and "ID_VERT_GRID" events=20 > to @table when they are clicked.=20 >=20 > When the application is run, these two menu items have=20 > check-boxes next to them. What is making these checkboxes=20 > appear? There's no events with the menu items as targets.=20 > There's no calls to the "check" method. How does this hang together? >=20 #########################################################################= ############ This email has been scanned by MailMarshal, an email content filter. #########################################################################= ############ |